Layer 231
AuthFinishFirebasePnvLogin
Complete a login started with auth. init Firebase Pnv Login, using the token returned by Firebase phone number verification.
method
auth.finishFirebasePnvLogin#2c85094c google_token:string = auth.Authorization;
Parameters
| Name | Type | Description |
|---|---|---|
| GoogleToken | string | Phone number verification token obtained from Google/Firebase |
Returns
auth.AuthorizationGogram Example
// googleToken is the Digital Credential response from Google Play services auth, err := client.AuthFinishFirebasePnvLogin(googleToken) if err != nil { log.Fatal(err) } switch auth.(type) { case *tg.AuthAuthorizationObj: fmt.Println("logged in") case *tg.AuthAuthorizationSignUpRequired: fmt.Println("sign up required: call auth.firebasePnvSignUp") }