Skip to main content

auth.authorization

Contains user authorization info.

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

Implements auth.Authorization.

Fields

NameTypeRequiredDescription
SetupPasswordRequiredboolSuggests the user to set up a 2-step verification password to be able to log in again
OtherwiseReloginDaysintIf 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.
TmpSessionsintTemporary passport sessions
FutureAuthToken[]byteA future auth token
UserUserClassyesInfo on authorized user

References