Class: TotpAuthServer
auth/totp.TotpAuthServer
Implements
Constructors
constructor
• new TotpAuthServer(_config
)
Parameters
Name | Type |
---|---|
_config |
TotpAuthConfig |
Defined in
Methods
_verifyCode
▸ Private
_verifyCode(authenticator
, code
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
authenticator |
Authenticator <any > |
code |
string |
Returns
Promise
<boolean
>
Defined in
activateAuthenticator
▸ activateAuthenticator(authenticator
, __namedParameters
):
Promise
<void
>
Parameters
Name | Type |
---|---|
authenticator |
Authenticator <any > |
__namedParameters |
Object |
__namedParameters.code |
string |
Returns
Promise
<void
>
Implementation of
AuthServer.activateAuthenticator
Defined in
initAuthRequest
▸ initAuthRequest(_authenticator
, _request
): Promise
<{}>
Parameters
Name | Type |
---|---|
_authenticator |
Authenticator <any > |
_request |
AuthRequest <any > |
Returns
Promise
<{}>
Implementation of
Defined in
initAuthenticator
▸ initAuthenticator(authenticator
): Promise
<{ secret
: string
}>
Parameters
Name | Type |
---|---|
authenticator |
Authenticator <any > |
Returns
Promise
<{ secret
: string
}>
Implementation of
Defined in
supportsType
▸ supportsType(type
): boolean
Parameters
Name | Type |
---|---|
type |
AuthType |
Returns
boolean
Implementation of
Defined in
verifyAuthRequest
▸ verifyAuthRequest(authenticator
, _request
, __namedParameters
):
Promise
<void
>
Parameters
Name | Type |
---|---|
authenticator |
Authenticator <any > |
_request |
AuthRequest <any > |
__namedParameters |
Object |
__namedParameters.code |
string |
Returns
Promise
<void
>