Archived
remove unecessary fields in auth provider
This commit is contained in:
1 file changed
-6
@@ -7,8 +7,6 @@ export const authOptions = {
|
||||
name: "Galtinn",
|
||||
type: "oauth",
|
||||
wellKnown: `${process.env.GALTINN_API_URL}/oauth/.well-known/openid-configuration/`,
|
||||
//auth: `${process.env.GALTINN_API_URL}/oauth/authorize`,
|
||||
//token: `${process.env.GALTINN_API_URL}/oauth/token`,
|
||||
userinfo: `${process.env.GALTINN_API_URL}/me/oauth`,
|
||||
checks: ["pkce", "state"],
|
||||
clientId: process.env.GALTINN_ID,
|
||||
@@ -17,16 +15,12 @@ export const authOptions = {
|
||||
profile(profile) {
|
||||
return {
|
||||
id: profile.sub,
|
||||
name: profile.name, // It's dumb to assume names are formatted this way but oh well
|
||||
email: profile.email,
|
||||
username: profile.preferred_username,
|
||||
date_of_birth: profile.date_of_birth,
|
||||
place_of_study: profile.place_of_study,
|
||||
is_volunteer: profile.is_volunteer,
|
||||
is_member: profile.is_member,
|
||||
last_membership: profile.last_membership,
|
||||
groups: profile.groups,
|
||||
discord_profile: profile.discord_profile,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user