Hi, does anyone know if there's a way to make a ba...
# support-questions-legacy
k
Hi, does anyone know if there's a way to make a backend request to get an access and refresh token from the SuperTokens core on behalf of a user without their credentials?
r
Hey!
Yes. There is a way
The session recipe exposes a function called createNewSession
Which you can call. And that function takes in a userId
k
Thank you, I wasn't sure if this would get the cookies where they needed to go, but it sounds like it will!
r
Yup. It should work