Raw.auth.Authorization
Contains user authorization info.
auth.authorization#2ea2c0d4 flags:# setup_password_required:flags.1?true otherwise_relogin_days:flags.1?int tmp_sessions:flags.0?int future_auth_token:flags.2?bytes user:User = auth.Authorization;
export namespace Raw {
export namespace auth {
export class Authorization {
constructor(params: {
setupPasswordRequired?: boolean;
otherwiseReloginDays?: number;
tmpSessions?: number;
futureAuthToken?: Buffer;
user: Raw.TypeUser;
}) {}
}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x2ea2c0d4
Property
setupPasswordRequired
: boolean or undefinedSuggests the user to set up a 2-step verification password to be able to log in again
otherwiseReloginDays
: number or undefinedIff setupPasswordRequired 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
: number or undefinedTemporary passport sessions
futureAuthToken
: Buffer or undefinedA future auth token
user
: Raw.TypeUserInfo on authorized user