-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix (trailingSlash: true) causes issue in auth0 example (#27010)
I think the issue was due to ```nextjs-auth0``` package on version ```0.8.0```. Upgrading to latest version ```1.4.2``` resolve the issue. ## Bug - [x] Related issues linked using `fixes` #19313
- Loading branch information
Showing
4 changed files
with
24 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
import { initAuth0 } from '@auth0/nextjs-auth0' | ||
|
||
export default initAuth0({ | ||
clientId: process.env.NEXT_PUBLIC_AUTH0_CLIENT_ID, | ||
secret: process.env.SESSION_COOKIE_SECRET, | ||
issuerBaseURL: process.env.NEXT_PUBLIC_AUTH0_DOMAIN, | ||
baseURL: process.env.NEXT_PUBLIC_BASE_URL, | ||
clientID: process.env.NEXT_PUBLIC_AUTH0_CLIENT_ID, | ||
clientSecret: process.env.AUTH0_CLIENT_SECRET, | ||
scope: process.env.NEXT_PUBLIC_AUTH0_SCOPE || 'openid profile', | ||
domain: process.env.NEXT_PUBLIC_AUTH0_DOMAIN, | ||
redirectUri: | ||
process.env.NEXT_PUBLIC_REDIRECT_URI || | ||
'http://localhost:3000/api/callback', | ||
postLogoutRedirectUri: | ||
process.env.NEXT_PUBLIC_POST_LOGOUT_REDIRECT_URI || | ||
'http://localhost:3000/', | ||
routes: { | ||
callback: | ||
process.env.NEXT_PUBLIC_REDIRECT_URI || | ||
'http://localhost:3000/api/callback', | ||
postLogoutRedirect: | ||
process.env.NEXT_PUBLIC_POST_LOGOUT_REDIRECT_URI || | ||
'http://localhost:3000', | ||
}, | ||
authorizationParams: { | ||
response_type: 'code', | ||
scope: process.env.NEXT_PUBLIC_AUTH0_SCOPE, | ||
}, | ||
session: { | ||
cookieSecret: process.env.SESSION_COOKIE_SECRET, | ||
cookieLifetime: Number(process.env.SESSION_COOKIE_LIFETIME) || 7200, | ||
absoluteDuration: process.env.SESSION_COOKIE_LIFETIME, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters