Closed koistya closed 2 years ago
RSASSA-PKCS1-v1_5
yarn generate:keys --env <envName>
JWT_SECRET
PUBLIC_KEY
PRIVATE_KEY
jsonwebtoken
jose
If you're using createIdToken, verifyIdToToken helper methods, you need to add await:
createIdToken
verifyIdToToken
await
// BEFORE createIdToken(...) verifyIdToken(...) createState(...) verifyState(...) // AFTER await createIdToken(...) await verifyIdToken(...) await createState(...) await verifyState(...)
RSASSA-PKCS1-v1_5
)yarn generate:keys --env <envName>
commandJWT_SECRET
passphrase in favor ofPUBLIC_KEY
,PRIVATE_KEY
jsonwebtoken
withjose
as a more modern alternative, supporting JWK keysBREAKING CHANGE:
If you're using
createIdToken
,verifyIdToToken
helper methods, you need to addawait
: