Constructor: auth.authorization
Contains user authorization info.
Attributes:
Name | Type | Required | Description |
---|---|---|---|
setup_password_required | Bool | Optional | Suggests the user to set up a 2-step verification password to be able to log in again |
otherwise_relogin_days | int | Optional | Iff setup_password_required is set and the user declines to set a 2-step verification password, they will be able to log into their account via SMS again only after this many days pass. |
tmp_sessions | int | Optional | Temporary passport sessions |
future_auth_token | bytes | Optional | A future auth token |
user | User | Optional | Info on authorized user |
Type: auth.Authorization
Example:
$auth_authorization = ['_' => 'auth.authorization', 'setup_password_required' => Bool, 'otherwise_relogin_days' => int, 'tmp_sessions' => int, 'future_auth_token' => 'bytes', 'user' => User];