Create token
Create Access Token
Authentication
Endpoint
Request Parameters
Response
Response Body
Request Example:
Create and return new access and refresh tokens for a user based on their email and password.
Args: email (str): The email of the user for whom the tokens are created. password (str): The password of the user for authentication.
Returns: AuthSchema: The schema containing the new access and refresh tokens.
Raises: HTTPException: If the token creation fails due to incorrect credentials.
application/json
application/jsonX api key for authentication
[x-api-key]Successful Response
Schema representing the authentication tokens returned during an authentication process.
This schema includes both the access and refresh tokens, each represented by a TokenSchema instance.
Attributes: access_token_data (TokenSchema): The schema containing the access token and its expiration. refresh_token_data (TokenSchema): The schema containing the refresh token and its expiration.
Validation Error
Last updated