@tillhub/javascript-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Auth
constructor
authenticated
options
token
user
whitelabel
authenticate
clear
Instance
determine
Auth
Type
get
Endpoint
login
AsSupport
login
Service
Account
login
Username
login
With
Organisation
logout
request
Password
Reset
request
Password
Reset
With
Organisation
set
Default
Header
set
New
Password
Hierarchy
Auth
Auth
Index
Constructors
constructor
Properties
authenticated
options
token
user
whitelabel
Methods
authenticate
clear
Instance
determine
Auth
Type
get
Endpoint
login
AsSupport
login
Service
Account
login
Username
login
With
Organisation
logout
request
Password
Reset
request
Password
Reset
With
Organisation
set
Default
Header
set
New
Password
Constructors
constructor
new
Auth
(
options
:
AuthOptions
)
:
Auth
Parameters
options:
AuthOptions
Returns
Auth
Properties
authenticated
authenticated
:
boolean
= false
options
options
:
AuthOptions
Optional
token
token
:
string
Optional
user
user
:
string
Optional
whitelabel
whitelabel
:
string
Methods
authenticate
authenticate
(
)
:
Promise
<
AuthResponse
>
Returns
Promise
<
AuthResponse
>
clear
Instance
clear
Instance
(
)
:
void
Initialise the SDK instance by authenticating the client
Returns
void
Protected
determine
Auth
Type
determine
Auth
Type
(
)
:
void
Returns
void
get
Endpoint
get
Endpoint
(
path
?:
string
)
:
string
Parameters
Optional
path:
string
Returns
string
login
AsSupport
login
AsSupport
(
authData
:
SupportAuth
)
:
Promise
<
AuthResponse
>
Parameters
authData:
SupportAuth
Returns
Promise
<
AuthResponse
>
login
Service
Account
login
Service
Account
(
authData
:
KeyAuth
)
:
Promise
<
AuthResponse
>
Parameters
authData:
KeyAuth
Returns
Promise
<
AuthResponse
>
login
Username
login
Username
(
authData
:
UsernameAuth
)
:
Promise
<
AuthResponse
>
Parameters
authData:
UsernameAuth
Returns
Promise
<
AuthResponse
>
login
With
Organisation
login
With
Organisation
(
authData
:
OrgAuth
)
:
Promise
<
AuthResponse
>
Parameters
authData:
OrgAuth
Returns
Promise
<
AuthResponse
>
logout
logout
(
token
?:
string
, whitelabel
?:
string
)
:
Promise
<
LogoutResponse
>
Parameters
Optional
token:
string
Optional
whitelabel:
string
Returns
Promise
<
LogoutResponse
>
request
Password
Reset
request
Password
Reset
(
target
:
PasswordResetRequest
)
:
Promise
<
PasswordResetRequestResponse
>
Parameters
target:
PasswordResetRequest
Returns
Promise
<
PasswordResetRequestResponse
>
request
Password
Reset
With
Organisation
request
Password
Reset
With
Organisation
(
target
:
PasswordOrgResetRequest
)
:
Promise
<
PasswordResetRequestResponse
>
Parameters
target:
PasswordOrgResetRequest
Returns
Promise
<
PasswordResetRequestResponse
>
Protected
set
Default
Header
set
Default
Header
(
user
:
string
, token
:
string
, whitelabel
?:
string
)
:
void
Parameters
user:
string
token:
string
Optional
whitelabel:
string
Returns
void
set
New
Password
set
New
Password
(
nonce
:
PasswordResetNonce
)
:
Promise
<
PasswordResetRequestResponse
>
Parameters
nonce:
PasswordResetNonce
Returns
Promise
<
PasswordResetRequestResponse
>
Generated using
TypeDoc
Initialise the SDK instance by authenticating the client