Authorization

User Token

For the requests that require a user token, make sure you are passing a valid idToken from your sign-in or sign-up requests when creating a client.

Make sure that you save the token expiration and always refresh the token before the expiry to avoid 403 errors

Example

import createClient from '@deskree/deskree-js'
import axios from 'axios'

const options = {
  projectId: "YOUR_PROJECT_ID",
  axios: axios,
  userToken: "USER_IDTOKEN"
}

const client = createClient(options)

Requests Returning idToken

Admin Token

For the requests that require an Admin Token, make sure you are passing a valid token when creating a client.

Example

import createClient from '@deskree/deskree-js'
import axios from 'axios'

const options = {
  projectId: "YOUR_PROJECT_ID",
  axios: axios,
  adminToken: "YOUR_DESKREE_ADMIN_TOKEN",
}

const client = createClient(options)

Requests Returning idToken

Useful Resources

Last updated

Copyright © 2023 Deskree Technologies Inc.