Hi ! I'm trying to get something like the enclosed...
# support-questions
d
Hi ! I'm trying to get something like the enclosed diagram to work, I can't find a way to get the user id from the cookies set by supertokens, maybe this setup doesn't make sense ? I was thinking I'd be able to get an user id from the sAccessToken cookie, but I don't manage to verify its signature using the keys provided by the jwt recipe's get_jwks function ?
r
hey @DemiSel
the sAccessToken is not a JWT. To get the JWT, you should extract the jwt from the session on the frontend and send it to the backend for verification.
See our docs on session with JWT
d
Alright, I was hoping to get rid of Authorization headers ! Thanks for the quick answer, have a nice day
r
in that case, you can use our verifySession function on the backend
and that will work with sAccessToken
but then you would have to init supertokens backend SDK in "other python services" as well - with the session recipe
d
I think I'll keep using authorization headers rather than adding a dependency in all services
r
yea. Makes sense.
We are working on a change in which the sAccessToken is the JWT itself - in which case, the method you originally planned would just work (~1 month away)
d
Great, looking forward to it !