@tillhub/javascript-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Auth
Types
Auth
constructor
authenticated
options
token
user
whitelabel
authenticate
clear
Instance
determine
Auth
Type
get
Endpoint
login
Username
logout
request
Password
Reset
request
Password
Reset
With
Organisation
set
Default
Header
set
New
Password
Logout
Failed
Logout
Missing
Token
Auth
Options
Auth
Response
Error
Object
Key
Auth
Logout
Response
Org
Auth
Password
Org
Reset
Request
Password
Reset
Nonce
Password
Reset
Request
Password
Reset
Request
Response
Support
Auth
Token
Auth
Username
Auth
is
Key
Auth
is
Org
Auth
is
Token
Auth
is
Username
Auth
Hierarchy
Auth
Auth
Index
Constructors
constructor
Properties
authenticated
options
token
user
whitelabel
Methods
authenticate
clear
Instance
determine
Auth
Type
get
Endpoint
login
Username
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
Username
login
Username
(
authData
:
UsernameAuth
)
:
Promise
<
AuthResponse
>
Parameters
authData:
UsernameAuth
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