Please enable JavaScript.
Coggle requires JavaScript to display documents.
Refresh Access Token Flow, AES Encryption Using Key and Signature, FE…
Refresh Access Token Flow
AES Encryption Using
Key
and
Signature
Key
Get Date string using (new Date().getTime())
Signature
Get Signature from env
FE Verifies AccessToken expiry
Valid
Makes API Call
Expiried
GET auth/refresh/message/user/:id
API Call begins
Generate
Cipher Text
Store
Cipher Text
in Cache
return
Cipher Text
API Call ends
Frontend signs message(
Cipher Text
) using privatekey of mainwallet
POST auth/refresh/user/:id
2 more items...
Store CipherText in Redis with
CacheKey
CacheKey
'WEB3_AUTH_userId'
START POINT