Skip to main content

Login

Login

Request Body REQUIRED
credential object REQUIRED

Credential

device string

Device id

device_token string

FCM device token

Responses
200

Login success

Schema OPTIONAL
server_id string

Server id

token string

Access token

refresh_token string

Refresh token

expired_in int64

The access token expired in seconds

user object

User info

uid int64
email string OPTIONAL
name string
gender int32
language language
is_admin boolean
is_bot boolean
avatar_updated_at timestamp
create_by string
401

Invalid account or password

403

Login method does not supported

404

User does not exists

409

Email collision

410

Account not associated

423

User has been frozen