Method | Resource | Purpose |
---|
GET | /tokens/:token | Verifies an access token and returns its payload if valid |
GET /tokens/:token
Verifies an access token
and returns its payload if valid.
The returned payload adheres to the RFC7519 specifications.
Parameters
Parameter | Type | Mandatory | Description |
---|
:token | Path | Yes | The access token to verify |
Response
Code | Description |
---|
200 | The token is valid and has not expired |
400 | The access token is malformed |
401 | The access token is invalid (expired signature key or incorrect token signature) |
403 | The access token has an incorrect issuer (iss != nopwd.io) |
404 | The access token is valid but has expired (exp < now) |
Usage