Authenticate User
Generate a token for the given user
Request parameters
{
"email": "bob@baz.bar",
"password": "password1234",
"tfa": 123456
}
Responses
{
"uid": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"token": "...",
"expiresIn": 3600
}
{
"error": "Bad Request",
"status": 400,
"field_errors": [
"email"
]
}
{
"error": "Unauthorized",
"status": 401,
"reason": "Unauthorized"
}
{
"error": "Server Error",
"status": 500,
"exception": "Baz given, expected Foo or Bar",
"trace": "example",
"thrownIn": "\App\Foo\Bar\Baz()",
"file": "example",
"line": 58,
"severity": "example"
}
Last modified: 15 January 2025