https://supertokens.com/ logo
f

Flan

04/06/2022, 2:28 PM
Perfect I will report it, another question, is there support to link my django user with the SuperTokens user? I mean inside the session
r

rp

04/06/2022, 2:30 PM
You mean you have different userId for existing users?
f

Flan

04/06/2022, 2:32 PM
Hey! Nope, I have one model of User in my Django models with
auth_uuid
field, so I store the user_id provided by SuperTokens in this field
And I have the SuperTokens user
r

rp

04/06/2022, 2:32 PM
Right.
f

Flan

04/06/2022, 2:33 PM
So, I want to know if there's its an option to return my Django too in the
consume
endpoint
Because when I use this endpoint, I get the data from the SuperTokens user only
r

rp

04/06/2022, 2:34 PM
I don’t quite understand rhe problem. Do you have users outside of the ones known to supertokens?
f

Flan

04/06/2022, 2:34 PM
For example, If we use TokenAuthentication with Django REST, with this token in every request, Django know's what user is requesting the resource
So, If I use SuperTokens, how Django can know who is the user that made the request
r

rp

04/06/2022, 2:36 PM
Oh right. You will have to use our session management functions from the library https://supertokens.com/docs/passwordless/common-customizations/verify-session
f

Flan

04/06/2022, 2:36 PM
Perfect, thank you very much!
Have a nice day
😁
r

rp

04/06/2022, 2:36 PM
To you too!
4 Views