Skip to content

v0.170.0

Latest

Choose a tag to compare

@ernado ernado released this 04 Dec 22:14
be17eb4

What's new

  • auth.Session, a sign-in and sign-up state machine (#2023), mirroring tdlib's authorizationState: WaitCode (every code type; Resend by next type after the timeout; ReportMissing), WaitEmailAddress and WaitEmailCode (email set-up and sign-in by email code or Google/Apple token, ResetEmail), WaitPayment (paid code), WaitPassword (2FA from any step), WaitRegistration, Ready. On an RPC error the state stays, so an input can be retried.
  • auth.Flow with a *Client runs on Session: email codes through the optional EmailAuthenticator, sign-up after any step. Other FlowClient implementations keep the previous path.

Full Changelog: v0.169.0...v0.170.0