webauthn
signIn()
signIn<P>(
provider?,
options?,
authorizationParams?): Promise<P extends RedirectableProviderType ? SignInResponse | undefined : undefined>
Initiate a signin flow or send the user to the signin page listing all possible providers. Handles CSRF protection.
Type parameters
Type parameter | Value |
---|---|
P extends undefined | RedirectableProviderType | undefined |
Parameters
Parameter | Type |
---|---|
provider ? | LiteralUnion <P extends RedirectableProviderType ? BuiltInProviderType | P : BuiltInProviderType > |
options ? | SignInOptions |
authorizationParams ? | SignInAuthorizationParams |
Returns
Promise
<P
extends RedirectableProviderType
? SignInResponse
| undefined
: undefined
>