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β
βͺ P extends undefined
| RedirectableProviderType
= undefined
Parametersβ
βͺ providerId?: LiteralUnion
< P
extends RedirectableProviderType
? P
| BuiltInProviderType
: BuiltInProviderType
, string
>
βͺ options?: SignInOptions
βͺ authorizationParams?: SignInAuthorizationParams
Returnsβ
Promise
< undefined
| Response
>
signOut()β
signOut(
options
?):Promise
<void
>
Signs the user out, by removing the session cookie. Automatically adds the CSRF token to the request.
Parametersβ
βͺ options?: SignOutParams
< true
>
Returnsβ
Promise
< void
>
SignInAuthorizationParamsβ
SignInAuthorizationParams:
string
|string
[][] |Record
<string
,string
> |URLSearchParams
Match inputType
of new URLSearchParams(inputType)