Abel Trần
KKinde
•Created by Abel Trần on 10/27/2024 in #💻┃support
Limit User Sessions
Hi, I want to set a user session limit (e.g., maximum of 10 sessions). If the user's active sessions exceed this limit, they should be logged out or prompted with an action.
2 replies
KKinde
•Created by Abel Trần on 10/6/2024 in #💻┃support
Issue with getKindeServerSession().refreshTokens(); in Next.js App Router
I am currently integrating Kinde with a Next.js application using the App Router. In my application, when a user logs in and successfully completes a payment transaction, I would like to set new properties for the user as paid user. However, I am encountering an issue when attempting to refresh the ID token using the method
getKindeServerSession().refreshTokens();
. It seems I am unable to fetch a new ID token after updating the user's properties.
Could you please provide guidance on how to resolve this issue or recommend an alternative approach for refreshing the ID token in this context?
Thank you!25 replies