directus-monorepo ( Readme | API )
directus-monorepo > TFAService
new TFAService(
options
):TFAService
Parameter | Type |
---|---|
options |
AbstractServiceOptions |
itemsService:
ItemsService
<Item
>
knex:
Knex
<any
,any
[] >
disableTFA(
key
):Promise
<void
>
Parameter | Type |
---|---|
key |
PrimaryKey |
Promise
< void
>
enableTFA(
key
,otp
,secret
):Promise
<void
>
Parameter | Type |
---|---|
key |
PrimaryKey |
otp |
string |
secret |
string |
Promise
< void
>
generateTFA(
key
):Promise
<Record
<string
,string
> >
Parameter | Type |
---|---|
key |
PrimaryKey |
Promise
< Record
< string
, string
> >
verifyOTP(
key
,otp
,secret
?):Promise
<boolean
>
Parameter | Type |
---|---|
key |
PrimaryKey |
otp |
string |
secret ? |
string |
Promise
< boolean
>
Generated using TypeDoc and typedoc-plugin-markdown