Skip to content

Commit 50ca14a

Browse files
Using fallback in auth scope when NEXTAUTH_AUTHORIZATION_SCOPE_OVERRIDE env var is empty
1 parent 34aed21 commit 50ca14a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/api/auth/[...nextauth].ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const wfoProvider: OAuthConfig<WfoUserProfile> = {
4141
wellKnown: OIDC_CONF_FULL_WELL_KNOWN_URL,
4242
authorization: {
4343
params: {
44-
scope: NEXTAUTH_AUTHORIZATION_SCOPE_OVERRIDE ?? 'openid profile',
44+
scope: NEXTAUTH_AUTHORIZATION_SCOPE_OVERRIDE || 'openid profile',
4545
},
4646
},
4747
idToken: true,

0 commit comments

Comments
 (0)