Skip to content

Sign in

Email and password sign in 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
TypeSignInEndpoint<TUser>
AuthenticationNo

Request body

NameTypeDescription
Emailstring
Passwordstring

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.