Join Discord
Powered by
Yes. You can use our preAPI hook to do that: https...
# support-questions
r
rp
02/13/2022, 3:18 PM
Yes. You can use our preAPI hook to do that:
https://supertokens.com/docs/thirdpartyemailpassword/advanced-customizations/frontend-hooks/pre-api
Alternatively, you can create an API that you call right after succesful a success sign up to modify the user's access token payload to include the role:
https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/sessions/update-jwt-payload
Previous
Next