Jian Ruiz Mangampo
Jian Ruiz Mangampo

Reputation: 189

Checking authentication in firebase on OTP

I'm using firebase as my OTP, whenever I log-in thru my app it always send OTP....can I create a code that can check if the number is already signed in on the console so it won't send OTP again??

Upvotes: 0

Views: 463

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 599876

Firebase automatically persists and restores the user's credentials when the app is restarted, so you should not have to send an OTP each time.

Check on how to detect the user's authentication state for your platform the first snippet in the documentation for Android, iOS, and Web

Upvotes: 1

Related Questions