https://supertokens.com/ logo
#contributing
Title
# contributing
d

Diegovsky

05/11/2022, 5:27 PM
Hey there. I resumed my work today implementing the session recipe and I'm basing it on this: https://app.swaggerhub.com/apis/supertokens/FDI/1.13.1 What is rid supposed to be here? the recipe id?
r

rp

05/11/2022, 6:31 PM
hey @Diegovsky
d

Diegovsky

05/11/2022, 6:31 PM
hello
r

rp

05/11/2022, 6:32 PM
on the backend SDK, the user can initialise several recipes
And those recipes may have APIs exposed on the same path and method
the
rid
header helps the SDK know which recipe the request is for.
d

Diegovsky

05/11/2022, 6:32 PM
yes, my question was whether
rid
stood for session id
r

rp

05/11/2022, 6:33 PM
no. It's not the same as session ID
d

Diegovsky

05/11/2022, 6:33 PM
oh sorry, I meant recipe id
r

rp

05/11/2022, 6:33 PM
ah right.. yea. missed that in your question
it is the recipe id indeed
there is one special case though -> when the user is querying their own API, the `rid`'s value is set to
anti-csrf
by our frontend SDK
that's not a recipe. But it's a way to protect against CSRF attacks
d

Diegovsky

05/11/2022, 6:34 PM
btw, the site says the
signout
does not need any cookies to work, is that right?
ah, I see
d

Diegovsky

05/11/2022, 6:35 PM
it's a very complex and modular api
r

rp

05/11/2022, 6:35 PM
> btw, the site says the signout does not need any cookies to work, is that right? Huh.. it does need cookies. Where did you read that?
here, specifically
r

rp

05/11/2022, 6:36 PM
oh right yea.. that's missing. It does need cookies to work
thanks for pointing that out
d

Diegovsky

05/11/2022, 6:36 PM
np
r

rp

05/11/2022, 6:36 PM
it needs the
sIdRefreshToken
and
sAccessToken
d

Diegovsky

05/11/2022, 6:36 PM
thanks, was about to ask :)
r

rp

05/11/2022, 6:37 PM
🙂
5 Views