Skip to content

Sign in with external provider

Sign in with external provider endpoint using a special cookie generated by a challenge endpoint. Returns access token in the response body and refresh token as HTTP only cookie for better security.

Info
MethodPOST
Route groupauth
Path{auth}/signin/external
TypeSignInExternalEndpoint<TUser>
AuthenticationAufy.ExternalSignInScheme cookie

Request body*

NameTypeDescription
-

Query parameters

NameTypeDescription
usecookiebooleanUse cookie to store access token. Default is false.

Response body

NameTypeDescription
access_tokenstringJWT token.
expires_innumberToken expiration time in seconds.
token_typestringBearer

Response Cookies

NameTypeDescription
Aufy.RefreshTokenstringHTTP only cookie with refresh token.
Aufy.AccessTokenstringHTTP only cookie with access token. Set only if usecookie query parameter is true.

*Request body can be modified to include additional fields. See Sign up customizations for more information.