Hi, i am trying to set up authorization. Im using ...
# support-questions-legacy
p
Hi, i am trying to set up authorization. Im using NextJs and NestJs. I've have set up the initial configs on both parts following the provided docs. I am handling passing roles through Session.init overiding the function for createNewSession (pictures below). When i log in as some user, the initial role is correct but then for some reason the token refreshes and it gets another user from the db. I am using session context to get the accessToken. What am i doing wrong?