Closed peterphanouvong closed 3 months ago
The recent updates involve enhancing the authentication middleware and session management. The authentication middleware now conditionally sets publicPaths
based on the provided options.publicPaths
, ensuring flexibility in defining public access paths. In session management, new functionalities are introduced with the addition of kindeClient
and sessionManager
, including a method for refreshing tokens. These changes aim to improve security and session handling within the application.
File | Change Summary |
---|---|
src/authMiddleware/.../authMiddleware.js |
Introduced conditional assignment to publicPaths based on options.publicPaths . Defaults to ['_next', '/favicon.ico'] if not specified or not an array. |
src/session/index.js |
Added imports for kindeClient and sessionManager . Introduced a refreshTokens method utilizing these new imports. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Explain your changes
getKindeServerSession().refreshTokens()
- it uses the refresh token to get up to date token data from kindeChecklist
🛟 If you need help, consider asking for advice over in the Kinde community.
Summary by CodeRabbit
kindeClient
andsessionManager
imports for improved functionality.