Hey there! 🙂 I wanted to ask what the proper wa...
# support-questions-legacy
f
Hey there! 🙂 I wanted to ask what the proper way of doing the following is. Some users are already logged in via Third Party Auth. (Goole) Now I'd like to add user roles to grant admins access to some functions. I implemented the code on client side and am setting a 'admin' role in the "createNewSession: async function (input) { ..." method on the NodeJS server side. The issue: This is only called when logging in from a fresh start. I need to set the access roles even for the users already logged in. It seems that "refreshSession" is not called somehow, so what would be the proper place to add this to get set for users who are already logged in? I feel its one of those methods I should intercept, but dunno which. https://supertokens.com/docs/fastapi/api-reference/session-dependency Would be super glad about help. 🙂 And btw.: Supertokens is really really nice, I love it!