Join Discord
Powered by
Code to generate a new signing key (to sign access...
# general
r
rp_st
11/21/2019, 5:01 AM
Code to generate a new signing key (to sign access tokens): [function at line 17]:
https://github.com/supertokens/supertokens-node-mysql-ref-jwt/blob/v4.3.0/lib/ts/helpers/utils.ts
Code to create and verify JWT access token given a signing key and JWT payload:
https://github.com/supertokens/supertokens-node-mysql-ref-jwt/blob/v4.3.0/lib/ts/helpers/jwt.ts
Code to encrypt and decrypt refresh tokens: [function at line 52 and line 92]:
https://github.com/supertokens/supertokens-node-mysql-ref-jwt/blob/v4.3.0/lib/ts/helpers/utils.ts
I hope this helps.
Previous
Next