Skip to content

Commit

Permalink
chore: improved settings example phone-auth.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Efstathios Ntonas committed Nov 19, 2024
1 parent dcfadae commit 5600693
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/auth/phone-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,13 @@ Firebase Auth automagically verifies the received OTP code from the SMS and in s
Disable auto verify by adding this on `index.js` or `App.tsx`:

```jsx
await firebase.auth().settings.setAutoOTPVerify(false);
(async function () {
try {
await firebase.auth().settings.setAutoOTPVerify(false);
} catch (error) {
console.error(error);
}
})();
```

To manually handle OTP verification code:
Expand Down

0 comments on commit 5600693

Please sign in to comment.