Hey, when setting custom claims in the access token where is the best place to do that? Using refreshPOST override, or make it a side effect in an api call which is called by the frontend as part of the login process? I've been reading through the docs and I can see a few examples of doing it for a /login route but just struggling to understand is that overriding a login route provided ootb by supertokens or is it in addition to the normal flows?
r
rp_st
07/23/2022, 3:49 AM
The best place would be to override the createNewSession function in the session.init config
j
Jake
07/23/2022, 3:49 AM
Is there an example somewhere in the docs for that?
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).