Generate SessionToken
POST/api/users/me/sessions/token
Generate a SessionToken for the current session, if the user is authenticated or
a new SessionToken instead.
It's only purpose is to successfully register or log in a user via an OAuth2 provider. You can learn more about OAuth2 providers here.
Request
Responses
- 200
- 500
EmailVerificationTokenCreation generated. The token will be returned if header authentication is enabled
The following error codes correspond to this status:
TOKEN_ENCODING_FAILURE: Represents an exception that occurs during the encoding process of a JSON Web EmailVerificationTokenCreation (JWT).TOKEN_SECRET_FAILURE: Represents an exception that occurs when there is a failure related to the secret required for creating a JSON Web EmailVerificationTokenCreation (JWT).COOKIE_CREATION_FAILURE: Thrown when an exception occurred during the creation of a cookie.