Auth

Validate JWT token

Validate the provided JWT token and retrieve user information from the token.

Required scopes: flex.user.auth.verify

post/api/v2/organizations/{orgSlug}/auth/verify

Request

  • Base URL
    https://app.officernd.com
  • URL
    https://app.officernd.com/api/v2/organizations/{orgSlug}/auth/verify
  • Auth
    OAuth 2
    Authorization code: https://identity.officernd.com/auth/authorize
    Client credentials
    Token URL: https://identity.officernd.com/auth/token scopes: flex.user.auth.verify

Path parameters

orgSlugstring required

organization slug

Request body

tokenstring required

The JWT token to verify.

Example request

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU4NDZmMjhhZmY1ZDg4MTI2YWJjZmMzZiIsImlhdCI6MTQ4MTExNjQwOCwiZXhwIjoxNDgxMjg5MjA4fQ.ElceBwjTRBhu669SWkn_Za8VKk-cwomzmbEsNywPt5A"
}

Response

isValidboolean

A flag indicating whether the token is valid.

userstring

The user reference.

memberstring

The _id of the member associated with the user.

companystring

The _id of the company associated with the user.

Example response

{
  "isValid": true,
  "user": "6080186f490fcf6e0537ec62",
  "member": "6080186f490fcf6e0537ec67",
  "company": "6080186f490fcf6e0537ec68"
}

Changes

No recorded changes to this operation across all 1 revision of this API.