Integrate Nextjs with NextAuth and Zitadel as well as life Roles update
I have been trying integrate Zitadel with NextAuth/Nextjs but I always struggle to get live Role changes or a way to force-refresh if a role changes directly from Zitadel. I did a work around of getting the roles every 10 seconds, but there is a case that does not work: Since Zitadel sends the role with the access token/id if a role gets created after a user had logged in and had the role given to them, it will not be sent/updated into the user's roles........... In my case a new role can be required very often. If anyone can help or set an example of auth config with Nextauth would be awesome.
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
Z
ZITADEL
ZITADEL - Identity infrastructure, simplified for you.