Layer 231
method
auth.finishFirebasePnvLogin#2c85094c google_token:string = auth.Authorization;

Parameters

Name Type Description
GoogleToken string Phone number verification token obtained from Google/Firebase

Gogram 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")
}