Hi guys, I want to update user’s JWT payload based on some decisions he made on frontend after initial login.
My current thought is to create a protected endpoint that:
- accepts some data I need
- generates new payload
- calls CDI POST /recipe/session/regenerate
- returns new tokens / sets cookies as a response
Is it the correct way to do it or maybe there any other recommendations?