Login
Login to get an authentication token.
Return an access token in the response and a cookie storing a refresh token.
Args: form_data (Annotated[OAuth2PasswordRequestForm, Depends()]): The form data to authenticate the user. session (Annotated[Session, Depends(get_db)]): The database session. cookie_max_age (int): the lifetime of the cookie storing the refresh token.
Query parameters
Response
Successful Response
Changes
Changed in 2 of the 2 revisions of this API.84
- ▲
the
client_secretrequest property type/format changed from/to/passwordrequest-property-type-changed
- ▲
the
passwordrequest property type/format changed fromstring/tostring/passwordrequest-property-type-changed
- ▲
the response's body type/format changed from
/toobject/for status200response-body-type-changed
- ○
added the required property
access_tokento the response with the200statusresponse-required-property-added
- ○
added the required property
refresh_tokento the response with the200statusresponse-required-property-added
- ○
added the required property
token_typeto the response with the200statusresponse-required-property-added
This revision also has 14 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the
client_secretrequest property type/format changed from/passwordto/request-property-type-changed
- ▲
the response's body type/format changed from
object/to/for status200response-body-type-changed
- ▲
removed the required property
access_tokenfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
refresh_tokenfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
token_typefrom the response with the200statusresponse-required-property-removed
- ○
the
passwordrequest property type/format was generalized fromstring/passwordtostring/request-property-type-generalized
This revision also has 103 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲