Class: PublicKeyAuthServer
auth/public-key.PublicKeyAuthServer
Implements
Constructors
constructor
• new PublicKeyAuthServer()
Methods
_verify
▸ Private _verify(publicKey, challenge, signedChallenge):
Promise<boolean>
Parameters
| Name | Type |
|---|---|
publicKey |
Uint8Array |
challenge |
PublicKeyAuthChallenge |
signedChallenge |
Uint8Array |
Returns
Promise<boolean>
Defined in
core/src/auth/public-key.ts:145
activateAuthenticator
▸ activateAuthenticator(authenticator, __namedParameters):
Promise<any>
Parameters
| Name | Type |
|---|---|
authenticator |
Authenticator<any> |
__namedParameters |
Object |
__namedParameters.publicKey |
string |
__namedParameters.signedChallenge |
string |
Returns
Promise<any>
Implementation of
AuthServer.activateAuthenticator
Defined in
core/src/auth/public-key.ts:109
initAuthRequest
▸ initAuthRequest(_authenticator, request): Promise<any>
Parameters
| Name | Type |
|---|---|
_authenticator |
Authenticator<any> |
request |
AuthRequest<any> |
Returns
Promise<any>
Implementation of
Defined in
core/src/auth/public-key.ts:121
initAuthenticator
▸ initAuthenticator(authenticator): Promise<{ challenge: any }>
Parameters
| Name | Type |
|---|---|
authenticator |
Authenticator<any> |
Returns
Promise<{ challenge: any }>
Implementation of
Defined in
core/src/auth/public-key.ts:97
supportsType
▸ supportsType(type): boolean
Parameters
| Name | Type |
|---|---|
type |
AuthType |
Returns
boolean
Implementation of
Defined in
core/src/auth/public-key.ts:93
verifyAuthRequest
▸ verifyAuthRequest(authenticator, request, __namedParameters):
Promise<void>
Parameters
| Name | Type |
|---|---|
authenticator |
Authenticator<any> |
request |
AuthRequest<any> |
__namedParameters |
Object |
__namedParameters.signedChallenge |
string |
Returns
Promise<void>