Stop Token Generation process if Log In credentials (email/password) provided by user are incorrect #89
Replies: 2 comments 1 reply
-
You can't stop and should not stop the authentication process after it initialized with You just call You should not use You should verify the user using Google APIs by sending the HTTP(s) POST request via this endpoint on port 443.
With the folowing payload
Please note that, the above Google API is deprecated but still can use. |
Beta Was this translation helpful? Give feedback.
-
Now you can deinitialize the auth task handler using For user verification, you can use this code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there!
I really need some help in solving a specific problem with this library.
Let me explain what I am trying to achieve:
I have created a configuration web page that runs on ESP32 for WiFi configuration and linking of device with User Account through Firebase. After successful connection with WiFi user have to provide his email and password. After that ESP32 tries to log in with provided credentials through your library. So now if user provided details are incorrect token generation process shows error, this error is handled properly in my code. But problem is that ESP stuck in endless token generation loop until error goes away. There is no way to stop that loop and inform user about wrong password so he can provide correct password.
My question is how can I stop the token generation process if error occurs?
Looking forward to your help....
Thank you !
Beta Was this translation helpful? Give feedback.
All reactions