MadelineProtoDocs/docs/API_docs/constructors/auth.authorization.md
2024-05-01 14:53:46 +02:00

1.5 KiB

title description nav_exclude image redirect_from
auth.authorization Contains user authorization info. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/auth_authorization.html

Constructor: auth.authorization

Back to constructors index

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];