Jump to content
xorpas

issue with phone send verification code to firebase

Recommended Posts

I have an issue with firebase send phone verification code  

 

format('https://www.googleapis.com/identitytoolkit/v3/relyingparty/sendVerificationCode?key=%s',[FIREBASE_API_KEY])

 i think it need a captcha or a token 

get this error   

{
  "error": {
    "code": 400,
    "message": "MISSING_REQ_TYPE",
    "errors": [
      {
        "message": "MISSING_REQ_TYPE",
        "domain": "global",
        "reason": "invalid"
      }
    ]
  }
}

 

Edited by xorpas

Share this post


Link to post

According to this documentation, the request requires a JSON body containing a recaptchaToken, iosSecret, iosReceipt, and phoneNumber, are you sending those values?

 

That being said, I think you are using an older URL, you should be using the latest Identity Toolkit API located at https://identitytoolkit.googleapis.com instead:

 

https://cloud.google.com/identity-platform/docs/reference/rest

https://cloud.google.com/blog/products/identity-security/getting-started-with-identity-platform

https://developers.google.com/identity/toolkit/migrate-identityplatform

Edited by Remy Lebeau
  • Thanks 1

Share this post


Link to post

I can't found an example that can test it. I don't need to use sdk only tnethttpclient. Have you a basic example? 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×