Authenticate a user and receive the JWT token to be used in the header of subsequent requests.When used with a third-party provider, such as Google, the request returns a location property. You redirect to the specified URL in your frontend to continue authentication with the third-party service.
Request Request Example
JavaScript
Shell
Java
Swift
curl--location-g--request POST '{{BASE_URL}}/auth/user/' \
--header'Content-Type: application/json' \
--data-raw'{}'
Response Response Example
200 - Example 1
{"token":"string"}
Request
Path Params
auth_provider
stringÂ
required
The provider used for authentication.
Example:
emailpass
Body Params application/json
object {0}
Examples
Responses
🟢200OK
application/json
OK
Body
optional
One of
The authentication's details.
token
stringÂ
token
required
The JWT token used for registration or authentication.