Comment on page
createClient() Method
Instantiates
deskree-js
SDK.Field | Required | Data Type | Description |
---|---|---|---|
options | Object | Name of Deskree table to instantiate connection with |
Field | Required | Data Type | Description |
---|---|---|---|
projectId | Object | Name of Deskree table to instantiate connection with | |
axios | Instance of axios package | ||
adminToken | string | ||
userToken | string | Refresh token obtained from sign-up or sign-in methods
Examples:
signInEmail()
signUpEmail()
signInOAuth() |
import createClient from '@deskree/deskree-js'
import axios from 'axios'
const options = {
projectId: "YOUR_PROJECT_ID",
axios: axios,
adminToken: "YOUR_DESKREE_ADMIN_TOKEN",
userToken: "USER_IDTOKEN"
}
const client = createClient(options)
Last modified 10mo ago