Function: signIn
client.signIn
â–¸ signIn<P
>(providerId?
, options?
, authorizationParams?
): Promise
<undefined
| Response
>
Client-side method to initiate a signin flow or send the user to the signin page listing all possible providers. Automatically adds the CSRF token to the request.
Type parameters​
Name | Type |
---|---|
P | extends undefined | RedirectableProviderType = undefined |
Parameters​
Name | Type |
---|---|
providerId? | LiteralUnion <P extends RedirectableProviderType ? BuiltInProviderType | P : BuiltInProviderType , string > |
options? | SignInOptions |
authorizationParams? | SignInAuthorizationParams |
Returns​
Promise
<undefined
| Response
>