Directus / @directus/sdk / auth / AuthenticationClient
Interface: AuthenticationClient<_Schema> ​
Defined in: auth/types.ts:31
Type Parameters ​
• _Schema
Methods ​
getToken() ​
getToken():
Promise
<null
|string
>
Defined in: auth/types.ts:38
Returns ​
Promise
<null
| string
>
login() ​
login(
password
,options
?):Promise
<AuthenticationData
>
Defined in: auth/types.ts:32
Parameters ​
email ​
string
password ​
string
options? ​
Returns ​
Promise
<AuthenticationData
>
logout() ​
logout():
Promise
<void
>
Defined in: auth/types.ts:34
Returns ​
Promise
<void
>
refresh() ​
refresh():
Promise
<AuthenticationData
>
Defined in: auth/types.ts:33
Returns ​
Promise
<AuthenticationData
>
setToken() ​
setToken(
access_token
):Promise
<unknown
>
Defined in: auth/types.ts:39
Parameters ​
access_token ​
null
| string
Returns ​
Promise
<unknown
>
stopRefreshing() ​
stopRefreshing():
void
Defined in: auth/types.ts:36
Returns ​
void