-
Notifications
You must be signed in to change notification settings - Fork 4
DecodeJwt
Walter Lara edited this page Apr 25, 2022
·
2 revisions
Allows to decode the JWT access token. This API is intended for debugging purposes.
URL: /v1/auth/jwt
Method: GET
Path Parameters: None
Query Parameters: None
Headers:
Authorization: Bearer {accessToken}
Accept: application/json
Code: 200 OK
Headers:
Content-Type: application/json
Content:
Field | Type | Description | Condition |
---|---|---|---|
id | string | UUID of the token. | Always |
issuer | string | Token issuer - always https://projectnewm.io . |
Always |
audience | string | Token audience - always [newm-server-users] . |
Always |
subject | string | UUID of the User. | Always |
expiresAt | string | Token expiration date and time. | Always |
Content example:
{
"id": "7bd2862f-8deb-4814-8943-156d9dab80dd",
"issuer": "https://projectnewm.io",
"audience": "[newm-server-users]",
"subject": "e1997031-0dd2-471e-b288-21188a3ac590",
"expiresAt": "Thu Apr 14 20:24:49 PDT 2022"
}
Code: 401 UNAUTHORIZED
Condition: If {accessToken}
is invalid or expired.