appboxo.login()
is called from inside the miniapp: The miniapp requests a login action via Boxo’s SDK.Key | Value | |||
---|---|---|---|---|
Authorization | Basic <base64 encoded(app_id:secret_key)> | |||
X-Hostapp-Client-ID | <client_id - Hostapp identifier> | |||
X-Miniapp-App-ID | <app_id - Miniapp identifier> |
Field | Data type | Description | ||
---|---|---|---|---|
reference | String(100) | Reference to user in Hostapp Server | ||
String | Verified user email address | |||
phone | String | Verified user phone number in E.164 format | ||
first_name | String | User’s first name | ||
last_name | String | User’s last name | ||
custom_attributes | JSON | Custom attributes |
200
in all casesData type | Optional | Description | ||||
---|---|---|---|---|---|---|
auth_token | String(1000) | No, except error_code provided | Authorization token for authenticating user in miniapp | |||
refresh_token | String(1000) | Yes | Refresh token for auth_token miniapp | |||
error_code | String | Yes | If some error is occured error code should be provided. Example: {"error_code": "INVALID_USER_DATA"} All error codes can be found here |
reference
field as identifier.refresh_token
for the session renewal without triggering connect flow again.ab_token
key to cookies. logout()
function, which will clear cookies and log out the user from the miniapp.