Directus / @directus/sdk / auth / AuthenticationClient
Interface: AuthenticationClient<_Schema> ​
Type Parameters ​
• _Schema
Methods ​
getToken() ​
getToken():
Promise
<null
|string
>
Returns ​
Promise
<null
| string
>
Defined in ​
login() ​
login(
password
,options
?):Promise
<AuthenticationData
>
Parameters ​
• email: string
• password: string
• options?: LoginOptions
Returns ​
Promise
<AuthenticationData
>
Defined in ​
logout() ​
logout():
Promise
<void
>
Returns ​
Promise
<void
>
Defined in ​
refresh() ​
refresh():
Promise
<AuthenticationData
>
Returns ​
Promise
<AuthenticationData
>
Defined in ​
setToken() ​
setToken(
access_token
):Promise
<unknown
>
Parameters ​
• access_token: null
| string
Returns ​
Promise
<unknown
>
Defined in ​
stopRefreshing() ​
stopRefreshing():
void
Returns ​
void