Authorization

Overview

Deskree uses Bearer tokens to authorize users to make API requests to the user project's services depending on the permissions set on the project's endpoints.

How to send a request that requires authorization?

If your endpoints' permission is set to anything other than public, you need to provide an authorization header as a Bearer token to make an API request.

Example:

headers: { Authorization: `Bearer ${token}` }

How to get a Bearer token?

To be able to get the token from the sign-up and sign-requests, you must first activate the AUTH provider you are using.

To get a Bearer token, you must sign in or sign-up a user via any of the Deskree AUTH API methods listed below. The token will be returned to you inside idToken property.

Further Read:

Last updated

Copyright © 2023 Deskree Technologies Inc.