Created
July 14, 2022 06:00
-
-
Save Joshscorp/53a012a3dde5d9aef6fa973017e15fea to your computer and use it in GitHub Desktop.
OnzAuth App Js Update User Tokens
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function updateUserTokens() { | |
const accessToken = auth.getAccessToken(); | |
const accessTokenJwt = auth.getDecodedAccessToken(); | |
const idTokenJwt = auth.getDecodedIDToken(); | |
setUser({ | |
accessToken: accessToken, | |
accessTokenJwt: accessTokenJwt, | |
idTokenJwt: idTokenJwt | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment