“Invalid Token” when trying to authenticate phone number using firebase

前端 未结 7 1989
庸人自扰
庸人自扰 2020-12-16 11:13

This is my code:

import FirebaseAuth


class AuthPhoneNum {

    static func getPhoneNum(phoneNumber: String) {
        PhoneAuthProvider.provider().verifyPh         


        
7条回答
  •  温柔的废话
    2020-12-16 11:51

    It is most likely that you need to upload an .p8 Key file (I have an Enterprise account but same thing for developer)
    In Apple Developer Account:

    • All Keys
    • Create New Key (+)
    • Type in Global name for all of your apps
    • Checkbox next to Apple Push Notifications service (APNs)
    • Download your p8 file
    • Upload to firebase dashboard

提交回复
热议问题