Welcome to the Kinde community.

P
K
A
A
A
Members
Abel Trần
A
Abel Trần
Offline, last seen 5 days ago
Joined October 6, 2024
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!
14 comments
A
A
l