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