client
Functionsβ
signIn()β
Signatureβ
signIn<P>(providerId?: LiteralUnion<P extends RedirectableProviderType ? BuiltInProviderType | P : BuiltInProviderType, string>, options?: SignInOptions, authorizationParams?: SignInAuthorizationParams): 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β
P
extendsundefined
|RedirectableProviderType
=undefined
Parametersβ
Name | Type |
---|---|
providerId? | LiteralUnion <P extends RedirectableProviderType ? BuiltInProviderType | P : BuiltInProviderType , string > |
options? | SignInOptions |
authorizationParams? | SignInAuthorizationParams |
Returnsβ
Promise
<undefined
| Response>
signOut()β
Signatureβ
signOut(options?: SignOutParams<true>): Promise<void>
Signs the user out, by removing the session cookie. Automatically adds the CSRF token to the request.
Parametersβ
Name | Type |
---|---|
options? | SignOutParams <true > |
Returnsβ
Promise
<void
>