Login
Changed onLogin 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.
Request
- The document declares no server URL.
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Request body application/x-www-form-urlencoded
Response
Successful Response
Changes
- breaking
the
request property format changed from no format topassword - breaking
the
request property format changed from no format topassword - breaking
the response's body type changed from no type to
objectfor status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- breaking
the
request property format changed frompasswordto no format - breaking
the response's body type changed from
objectto no type for status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - info
the
request property format was generalized frompasswordto no format
- breaking