directus-monorepo ( Readme | API )
directus-monorepo > AuthenticationService
new AuthenticationService(
options
):AuthenticationService
Parameter | Type |
---|---|
options |
AbstractServiceOptions |
api/src/services/authentication.ts:30
accountability:
any
api/src/services/authentication.ts:26
activityService:
ActivityService
api/src/services/authentication.ts:27
knex:
Knex
<any
,any
[] >
api/src/services/authentication.ts:25
schema:
SchemaOverview
api/src/services/authentication.ts:28
login(
providerName
=DEFAULT_AUTH_PROVIDER
,payload
,otp
?):Promise
<LoginResult
>
Retrieve the tokens for a given user email.
Password is optional to allow usage of this function within the SSO flow and extensions. Make sure to handle password existence checks elsewhere
Parameter | Type | Default value |
---|---|---|
providerName |
string |
DEFAULT_AUTH_PROVIDER |
payload |
Record < string , any > |
undefined |
otp ? |
string |
undefined |
Promise
< LoginResult
>
api/src/services/authentication.ts:43
logout(
refreshToken
):Promise
<void
>
Parameter | Type |
---|---|
refreshToken |
string |
Promise
< void
>
api/src/services/authentication.ts:401
refresh(
refreshToken
):Promise
<Record
<string
,any
> >
Parameter | Type |
---|---|
refreshToken |
string |
Promise
< Record
< string
, any
> >
api/src/services/authentication.ts:252
verifyPassword(
userID
,password
):Promise
<void
>
Parameter | Type |
---|---|
userID |
string |
password |
string |
Promise
< void
>
api/src/services/authentication.ts:430
Generated using TypeDoc and typedoc-plugin-markdown