POST
Login
Login authenticates a user with their credentials and returns a JWT session token.
/api.v1.auth.AuthService/Login Public01
Request
LoginRequest
LoginRequestapi.v1.auth.LoginRequest4 fields
LoginRequest contains the credentials required to authenticate a user.
usernamestringThe unique username of the user.
passwordstringThe plain-text password of the user.
clientTypestringA bounded, non-authoritative client identifier used to label this session.
deviceNamestringA bounded, non-authoritative device label shown in session management.
{
"username": "fireanime_user",
"password": "your-password",
"clientType": "string",
"deviceName": "string"
}02
Response
AuthResponse
AuthResponseapi.v1.auth.AuthResponse2 fields
AuthResponse contains the session information returned after successful authentication.
tokenstringThe JWT (JSON Web Token) used for subsequent authenticated requests.
isAdminboolIndicates whether the authenticated user has administrative privileges.
{
"token": "eyJhbGciOiJIUzI1NiJ9…",
"isAdmin": true
}03
Error handling
Common failure codes
invalid_argumentThe request payload failed validation.
internalThe service could not complete the operation.