auth.authorization
Contains user authorization info.
type tg.AuthAuthorization struct { /* ... */ }
Implements auth.Authorization.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
SetupPasswordRequired | bool | — | Suggests the user to set up a 2-step verification password to be able to log in again |
OtherwiseReloginDays | int | — | 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. |
TmpSessions | int | — | Temporary passport sessions |
FutureAuthToken | []byte | — | A future auth token |
User | UserClass | yes | Info on authorized user |
References
- Official documentation
- Generated Go reference
- TL definition:
auth.authorization#2ea2c0d4