clientId |
string
|
|
[Required] The client id for your app. |
clientSecret |
string
|
<optional>
|
The client secret for your app. |
redirectUri |
string
|
<optional>
|
[Required] The redirect Uri to return to once auth is
complete. |
tokenAccessType |
string
|
<optional>
|
type of token to request. From the following:
legacy - creates one long-lived token with no expiration
online - create one short-lived token with an expiration
offline - create one short-lived token with an expiration with a refresh token |
scope |
Array.<string>
|
<optional>
|
scopes to request for the grant |
includeGrantedScopes |
string
|
<optional>
|
whether or not to include
previously granted scopes.
From the following:
user - include user scopes in the grant
team - include team scopes in the grant
Note: if this user has never linked the app, include_granted_scopes must be None |
usePKCE |
boolean
|
<optional>
|
Whether or not to use Sha256 based PKCE.
PKCE should be only use on client apps which doesn't call your server.
It is less secure than non-PKCE flow but can be used if you are unable to safely
retrieve your app secret |