An Outseta JWT Access Token identifies an authenticated user of your app. It can be decoded to access the payload (aka, information about the user).
To access the decoded JWT Payload on your site use Outseta.getJwtPayload()
or listen for the accessToken.set
:
👉 How to retrieve user info client-side with JavaScript
It's also possible to decode and verify the access token on your server:
👉 Decode and verify Outseta JWT Access Tokens server-side
The decoded payload
{
"nbf": 1610374706,
"exp": 1610979506,
"iss": "http://go.outseta.com",
"client_id": "go.outseta.com.resource-owner",
"scope": [
"openid",
"outseta",
"profile"
],
"sub": "3wQXdmKz",
"auth_time": 1610374706,
"idp": "idsrv",
"email": "[email protected]",
"email_verified": true,
"family_name": "Name",
"given_name": "First",
"name": "First Last",
"nameid": "3wQddmKz",
"outseta:accountUid": "wZmNddO",
"outseta:accountClientIdentifier": "1",
"outseta:isPrimary": "0",
"outseta:subscriptionUid": "dpWr3mnq",
"outseta:planUid": "y7maddEq",
"outseta:addOnUids": [
"y7marQEq",
"2amRZEmJ"
],
"amr": [
"password"
],
"outseta:iss": "go.outseta.com",
"aud": "go.outseta.com",
"iat": 1706027112
}