Skip to main content

auth.authorization

Contains user authorization info.

type tg.AuthAuthorization struct { /* ... */ }

Implements auth.Authorization.

Fields​

NameTypeRequiredDescription
SetupPasswordRequiredbool—Suggests the user to set up a 2-step verification password to be able to log in again
OtherwiseReloginDaysint—If and only if 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.
TmpSessionsint—Temporary passport sessions
FutureAuthToken[]byte—A future auth token
UserUserClassyesInfo on authorized user

References​