Home > Enterprise >  get value from FIRAuth swift
get value from FIRAuth swift

Time:12-23

I'm working on an iOS app, which I use FirebaseAuth to authinticate my user with phone no, my back end API require to send a _lastnotifiedusertoken to it after authontication succeeded, bellow an image of returned value.

Image of auth result

CodePudding user response:

You can get this value from:

Auth.auth().currentUser?.getIDToken(completion: { token, error in 
     print(token as Any)
}
  • Related