Padloc Logo Docs & Resources

Class: TotpAuthServer

auth/totp.TotpAuthServer

Implements

Constructors

constructor

new TotpAuthServer(_config)

Parameters

Name Type
_config TotpAuthConfig

Defined in

core/src/auth/totp.ts:22

Methods

_verifyCode

Private _verifyCode(authenticator, code): Promise<boolean>

Parameters

Name Type
authenticator Authenticator<any>
code string

Returns

Promise<boolean>

Defined in

core/src/auth/totp.ts:56


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

core/src/auth/totp.ts:37


initAuthRequest

initAuthRequest(_authenticator, _request): Promise<{}>

Parameters

Name Type
_authenticator Authenticator<any>
_request AuthRequest<any>

Returns

Promise<{}>

Implementation of

AuthServer.initAuthRequest

Defined in

core/src/auth/totp.ts:46


initAuthenticator

initAuthenticator(authenticator): Promise<{ secret: string }>

Parameters

Name Type
authenticator Authenticator<any>

Returns

Promise<{ secret: string }>

Implementation of

AuthServer.initAuthenticator

Defined in

core/src/auth/totp.ts:28


supportsType

supportsType(type): boolean

Parameters

Name Type
type AuthType

Returns

boolean

Implementation of

AuthServer.supportsType

Defined in

core/src/auth/totp.ts:24


verifyAuthRequest

verifyAuthRequest(authenticator, _request, __namedParameters): Promise<void>

Parameters

Name Type
authenticator Authenticator<any>
_request AuthRequest<any>
__namedParameters Object
__namedParameters.code string

Returns

Promise<void>

Implementation of

AuthServer.verifyAuthRequest

Defined in

core/src/auth/totp.ts:50