authSignin
const url = 'http://localhost:8300/auth/signin';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"email":"example","password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8300/auth/signin \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "email": "example", "password": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Normalised like sign-up; a malformed one is just a failed sign-in (401)
Example generated
{ "email": "example", "password": "example"}Responses
Section titled “Responses”A new session
object
RS256 JWT (kid in the header; claims iss, sub, email, roles, jti, fid = session family, iat, exp); ACCESS_TTL, default 15 min
Opaque; REFRESH_TTL, default 30 days; single use, rotated by /auth/refresh
object
Sorted; may be empty
Example
{ "user": { "roles": [ "user" ] }}Unknown email or wrong password: “Wrong email or password.”. A disabled user with the right password: “This account is off. Ask your admin.”; with a wrong one the generic line, so it tells nothing of which emails exist. Every refusal counts against the sign-in limit.
object
Example generated
{ "detail": "example"}Invalid input: “invalid JSON body”, or the failed rule (“invalid email”, “name must be 1-200 characters”, “password must be at least 10 characters”, “password is too common”, “roles must not be empty”, …)
object
Example generated
{ "detail": "example"}Too many failed sign-ins or too many requests (Kong rate limit: 20/min, 200/h per IP, {message})