Join Discord
Powered by
Team, what can we do if we don't want to set refre...
# support-questions-legacy
m
mib200
02/07/2023, 6:57 PM
Team, what can we do if we don't want to set refresh tokens etc? That is don't create a session which can refresh itself?
r
rp_st
02/07/2023, 8:20 PM
hey
@mib200
you can achieve this by overring the session recipe functions to have your own tokens. Here is an example of how we change the session recipe to work with just a simple JWT (without refresh tokens):
https://github.com/supertokens/supertokens-auth-react/blob/master/examples/with-jwt-localstorage/api-server/index.ts#L152
3
Views
Previous
Next