Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 319 Vote(s) - 3.63 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Firebase unable to process request due to missing initial state

#1
I am trying to use phone auth from `firebase` and I get this error now.

Unable to process request due to missing initial state. This may happen if browser session storage is inaccessible or accidentally cleared.

This was working a week ago and no longer works.
Reply

#2
I experienced the issue with an iphone web app. I went into Settings -> Safari and disabled 'Prevent Cross-Site Tracking'.
Reply

#3
I have solved this by registering my app with SafetyNet with SHA2. To do this follow these steps:

1. Get your SHA2. If you don't know how to get this, follow this tutorial:

Note. This youtube link is for SHA1 but you will notice that SHA2 will be shown here if you pay attention.
2. Go to your Firebase Console then, go to Project Settings > App Check. You will notice your app is "Unregistered." click this to register your app.
3. Enter the SHA2 you copied and Accept some terms below then click Save. you will notice the "Registered" with green check icon.

Btw, this error happens on one of my devices but not on another. I also searched through this error and no one has solved this including this page. This happens in my phone authentication using firebase when getting an OTP as I send my phone number. The app tries to redirect you to a browser for Recaptcha for verification if you don't have SafetyNet. Thus, having no SafetyNet will cause your app to always be redirected for Recaptcha which sometimes causes an error. Thus, to solve this, register your app with Safety Net. to understand this, read this documentation.

[To see links please register here]

Focus on 2. Enable App Verification and you will notice that recaptcha is just an alternative for SafetyNet.
Reply

#4
It had on the Ionic/Angular/Capacitor app too. i.e. Android and Chrome. Firebase Auth with Microsoft Login.

So I have cleared all the chrome browser data on the Android device and then no issues. i.e. working fine now.

More workarounds:

[To see links please register here]

Reply

#5
### I came across this error and this is how I fixed it!

- Go to your firebase's project console
- Expand the `Build` section and click on app check
- You will notice that your app is not registered on `SafetyNet`
- Firebase will auto-detect your SHA-256 certificate
- You will have to accept some terms and then you confirm

### *NB: Note that `SafetyNet` is deprecated and will be soon removed, you should activate `Play Integrity`instead.*


Happy Coding!
Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through