Skip to content

DecodeJwt

Walter Lara edited this page Apr 25, 2022 · 2 revisions

Decode JWT Access Token

Allows to decode the JWT access token. This API is intended for debugging purposes.

Request

URL: /v1/auth/jwt

Method: GET

Path Parameters: None

Query Parameters: None

Headers:

Authorization: Bearer {accessToken}

Accept: application/json

✅ Success Response

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"
}

❌ Error Response

Code: 401 UNAUTHORIZED

Condition: If {accessToken} is invalid or expired.

See Also

Login using Email/Password

Login using OAuth

Refresh JWT Access Token

Request 2FA Code

Clone this wiki locally