Questions developers ask
114 answers on push delivery, OTP costs and DLT, passkeys and push approval. Each links to the full article. Not here? Email hello@signops.dev.
Getting started
Can I use more than one SignOps product in the same app?
Yes. They share one API key, one dashboard and your own user ids, so a user who signs up with an email code can later add a passkey, trust a phone for Approve and turn on an authenticator app, all under the same user_id.
Which product should a new sign-up use?
An email code (or a magic link). It is the only one that works before the user has anything set up. Passkeys, Approve and the authenticator app are added after the first sign-in.
Do I need an SDK in my app?
Not for push, email codes, magic links or the authenticator app. Push uses the Firebase or Apple SDK your app already has, and the rest are calls from your server. Approve and passkeys inside an Android or iOS app need the SignOps phone SDK. Passkeys on a website need only the browser script.
Does SignOps replace my login system?
No. Your login system keeps its users and sessions. SignOps checks that the person is the user, by a code, a passkey or an approval, and your server then starts the session as it does today.
Push notifications
Why are notifications not showing on my Xiaomi phone?
Xiaomi's MIUI and HyperOS stop apps in the background to save battery. If Autostart is off or battery saver restricts the app, its pushes are delayed or dropped. Turn on Autostart, set battery saver to No restrictions and allow notifications on the lock screen.
Why push notifications go missing on Xiaomi, Oppo, Vivo and Realme
Can an app turn off battery optimization by itself?
Not silently. An app can open the system screen where the user exempts it, using Android's battery optimization settings intent. Google Play allows asking for a direct exemption only for a few kinds of apps, so most apps should guide the user to the setting instead.
Why push notifications go missing on Xiaomi, Oppo, Vivo and Realme
Is this a Firebase problem?
No. FCM delivers to the phone; the phone maker's software decides whether your app may wake up and show it. The same message shows at once on a Pixel and late or never on a restricted Xiaomi.
Why push notifications go missing on Xiaomi, Oppo, Vivo and Realme
What is dontkillmyapp.com?
A community site that lists, phone maker by phone maker, how their battery management kills background apps and which settings undo it. It is the most useful single reference for this problem.
Why push notifications go missing on Xiaomi, Oppo, Vivo and Realme
Do I need the SignOps SDK for push on Android?
No. The app uses Firebase Cloud Messaging as usual and gives its token to your server. SignOps sends with your Firebase project's service account. The SignOps SDK is only needed for Approve, passkeys and counting opens.
Why does SignOps need my Firebase service account?
A device token belongs to one Firebase project, and only that project's credentials can send to it. The service account JSON is how SignOps sends as your project. It is checked with Google on upload, encrypted with AES-256-GCM, and never shown again.
What does SENDER_ID_MISMATCH mean?
The token was made by a different Firebase project from the service account you uploaded. Check that google-services.json in the app and the service account in SignOps come from the same Firebase project.
My push arrives when the app is closed but not when it is open. Why?
When the app is in the foreground, Android hands a notification message to your FirebaseMessagingService.onMessageReceived instead of showing it. Draw it yourself there with NotificationCompat if you want it shown.
Where do I find my Apple Team ID?
Sign in at developer.apple.com/account and open Membership details. The Team ID is a 10-character code such as 5HD3K7P2TQ. Xcode shows the same team under Signing and Capabilities.
I lost the .p8 file. Can I download it again?
No. Apple lets you download an APNs key once. Revoke it under Certificates, Identifiers and Profiles, Keys, make a new one and upload that to SignOps. Pushes keep working with the old key until you revoke it.
Should I pick sandbox or production?
Pick Production and sandbox. Builds you run from Xcode get sandbox tokens; TestFlight and App Store builds get production tokens. With both, SignOps tries production first and falls back to sandbox, so one setting covers every build.
Do I need Firebase for iOS?
No. If your iOS app does not use Firebase, send straight to Apple with a .p8 key. If it already uses Firebase Messaging, send through Firebase and use the same service account as Android.
Does push work in the iOS Simulator?
Do your first test on a real iPhone. On an Apple silicon Mac the Simulator can get a real sandbox token, and APNs accepts pushes to it, but in our test on 14 Nov 2026 none of them reached the app. Its token was also 80 bytes, not 32.
Can I send Expo push tokens (ExponentPushToken) through SignOps?
No. Those tokens only work with Expo's own push service. Get the phone's native token with getDevicePushTokenAsync from expo-notifications instead, which gives an FCM token on Android and an APNs token on iOS.
Does push work in Expo Go?
Not for testing your own Firebase project and Apple key. Make a development build with npx expo prebuild or EAS Build, so the app carries your google-services.json and push capability.
Which iOS route should a React Native or Flutter app pick?
Through Firebase if the app gets its token from Firebase Messaging, which is what @react-native-firebase/messaging and firebase_messaging give you. Straight to Apple if it sends the raw APNs token, as Expo's getDevicePushTokenAsync does on iOS.
Do I need Firebase for web push?
No. SignOps made a pair of web push (VAPID) keys for your app when you created it. The public key goes in your page; the private key stays with SignOps, encrypted.
Does web push work on iPhone?
Yes, on iOS 16.4 and later, once the user adds your site to the home screen and opens it from there. Safari in a normal tab cannot subscribe.
Can I move web push subscribers from OneSignal or Firebase?
No. A browser subscription is tied to the web push keys it was made with, so it only works with the old provider's keys. Those users subscribe again on your site, which happens the next time they allow notifications.
Why does the permission prompt not appear?
Browsers only show it after a click or tap, block it for sites that ask too often, and remember a No. Ask from a button such as Turn on notifications, and if the user said No, tell them how to allow it in the site settings.
Push authentication
What is push authentication?
Instead of typing a code, the user approves a sign-in on a phone they already use. The app shows who is signing in and from where, and the user confirms, usually with a biometric.
What is an MFA fatigue attack?
An attacker who has a user's password sends approval request after request until the user taps approve to make it stop. It is also called push bombing, and it was used in the 2022 Uber breach.
What is number matching?
The login screen shows a number and the phone asks the user to pick the same one. Only the person in front of that screen can answer, so spammed requests cannot be approved blindly. Microsoft made it mandatory in Authenticator in May 2023.
Is push authentication better than OTP?
With number matching and a signed challenge, yes for most logins; there is no code to read out to a caller and nothing for a SIM swap to catch. It only works on a phone that already signed in, so OTP or passkeys still cover signup and recovery.
Is the RBI banning SMS OTP?
No. The 2025 directions keep the requirement of two factors and do not require any one method, so banks and payment companies can use SMS OTP alongside or instead of other factors.
When do the RBI authentication directions apply?
The Reserve Bank of India issued them on 25 September 2025, with compliance required by 1 April 2026.
Do the directions apply to my startup?
They apply to payment system providers and participants, which includes banks and non-bank payment companies. Apps that only sign users in, without moving money, are not covered, though the same methods are good practice.
Why does Approve need code in my app?
Each answer is signed with a key made inside the phone's Android Keystore or iOS Secure Enclave, and the key never leaves the phone. Only code in your app can make that key and ask for the fingerprint or face before signing.
What happens if the user has no trusted phone?
Creating a request answers 404 not_found with "This user has no trusted phone". Fall back to an email code, a passkey or the authenticator app.
What if the user picks the wrong number?
A wrong number counts as denied. That is the point of number matching, it stops a user approving a request they did not start just to make the pushes stop.
How many phones can a user trust?
Five. Enrolling a sixth stops the oldest one being trusted. A phone that moves to another user stops being trusted for the first one.
Is an expired request billed?
No. Only approved and denied requests are counted.
Passkeys
What is passkey autofill, or conditional UI?
The browser offers the user's saved passkeys in the username field's autofill list, next to saved passwords, instead of in a separate modal. The page starts a navigator.credentials.get() call with mediation set to "conditional" when it loads; the call waits silently until the user picks a passkey from the list.
Why don't my passkeys show in the autofill list?
The usual causes are a missing "webauthn" token in the input's autocomplete attribute, the get() call made with a non-empty allowCredentials list, an rpId that does not match the one the passkey was made with, or the get() call never started because it waited for a click. The field also has to be focused for the list to open.
Should allowCredentials be empty for passkey autofill?
Yes. With conditional mediation the browser lists every discoverable credential for your rpId, so the server does not know the user yet and sends an empty allowCredentials. The passkey itself tells you which user it belongs to through userHandle.
Can I keep a "Sign in with a passkey" button as well?
Yes, and you should, for browsers without autofill support. Only one WebAuthn request can run at a time, so abort the pending conditional request with its AbortController before the button starts its own get(). Without the abort, Chrome rejects the button's call with OperationError, A request is already pending.
What does a passkey server have to do?
Four things. Make registration options with a fresh challenge, verify the attestation the browser sends back and store the public key, make sign-in options with another fresh challenge, and verify the assertion against the stored key. Every check is in the WebAuthn spec; a library such as SimpleWebAuthn does them for you.
Which Node library verifies WebAuthn responses?
SimpleWebAuthn (the @simplewebauthn/server package) is the most used. Version 13 needs Node 22 or newer and runs in Deno, Bun and Cloudflare Workers too. It generates the options, checks challenge, origin, RP ID hash, flags and signature, and returns the public key to store.
Where should I keep the challenge between the options and the verify call?
Server side, tied to the person's session or to a short-lived signed value, for one attempt only. Expire it after a few minutes and delete it once used, so a captured response cannot be replayed.
What should I store for each passkey?
The credential id (base64url, indexed), the public key as bytes, the user it belongs to, the signature counter, the transports, and whether it is synced (device type and backed up). Never store a private key; the server never sees one.
Why does verification fail with "Response counter value 0 was lower than expected"?
Your stored counter is above 0 and the authenticator sent 0 or a lower number. Synced passkeys from Apple and Google usually send 0 every time, which the library accepts when the stored counter is also 0. Store the counter the registration returned, and update it with newCounter after every sign-in.
Do I need attestation for passkeys?
Almost never. attestationType none is the default and the right choice for a consumer site. Synced passkeys do not give a useful attestation, and asking for one adds a prompt on some platforms.
Are passkeys better than OTP?
For sign-in, yes. A passkey only answers the website it was made for, so it cannot be phished, and there is no code to send, read or intercept. OTP is still useful to verify a new email or phone, and to recover an account when the passkey is lost.
Which phones support passkeys?
Android 9 and later, iOS 16 and later, and current Chrome, Safari, Edge and Firefox. Synced passkeys are backed up by Google Password Manager, iCloud Keychain or password managers such as 1Password.
Can I add passkeys to Flutter or React Native?
Yes. On Android they go through Credential Manager and on iOS through AuthenticationServices; Flutter and React Native packages wrap both, and your server must check the WebAuthn responses.
What happens if a user loses their phone?
Synced passkeys come back on the new phone through the same Google or Apple account. If not, let them in with an email code and ask them to make a new passkey.
What does "NotAllowedError The operation either timed out or was not allowed" mean?
It is WebAuthn's catch-all. The user closed or cancelled the prompt, the timeout ran out, the page called the API without a user gesture inside a cross-origin iframe, a permissions policy blocked it, or, for a sign-in, none of the credentials in allowCredentials exist on any authenticator the browser can reach. The browser does not tell your page which, on purpose, so a site cannot learn whether a passkey exists.
Why does navigator.credentials.create() throw InvalidStateError?
The authenticator already holds a credential listed in excludeCredentials, so the user tried to register a second passkey for the same account on the same device or password manager. Treat it as "already set up" and show that, not as a failure.
What causes SecurityError "The relying party ID is not a registrable domain suffix of, nor equal to the current domain"?
The rp.id (or rpId) you passed is not the page's domain or a parent of it. A page on app.example.com can use example.com or app.example.com, never another domain. It also happens on an IP address or a non-HTTPS origin other than localhost.
Does WebAuthn work on localhost?
Yes. Browsers treat http://localhost as a secure context, so the API works there with rp.id set to localhost. Any other plain http origin fails, and so does an IP address such as 192.168.1.5.
What is the difference between NotAllowedError and AbortError?
AbortError comes from your own code, when the AbortSignal you passed is aborted, for example when you cancel a pending passkey autofill request to start a button sign-in. NotAllowedError comes from the user or the browser.
Which SHA-256 do I add for an app on Google Play?
The app signing key certificate from Play Console, App integrity, App signing. With Play App Signing, Google re-signs your app, so the fingerprint of your upload key is not the one on users' phones. Add your debug certificate as well while you develop.
Do passkeys made on my website work in my app?
Yes. Once the app is linked to your domain with assetlinks.json or apple-app-site-association, the same passkeys work in the browser and in the app, and the same server calls check them.
Why does iOS not see my apple-app-site-association file?
Apple fetches it through its own cache, not from the phone, so a new or changed file can take a while to reach devices. It must be at /.well-known/apple-app-site-association, served as application/json over https with no redirect. While developing, add ?mode=developer to the Associated Domains entry and turn on Associated Domains Development under Settings, Developer on the iPhone.
Which versions are supported?
Android 9 and later through Credential Manager, and iOS 16 and later through AuthenticationServices.
Which domain should I enter?
The domain users know, without www, such as example.com. Passkeys made for it work on the domain and every subdomain (www, app, accounts). It cannot change once users have passkeys, because each passkey is tied to it.
Can I test passkeys on localhost?
Yes. Make a separate SignOps app for development with the domain localhost and an origin such as http://localhost:3000. Keep your real domain on the live app.
Does SignOps show its own name to users?
No. The browser's prompt shows your domain and the name you enter in the dashboard. There is no hosted login page.
What if a user's device has no passkey support?
Keep your current sign-in as the fallback. Passkeys sit next to it; they do not replace it until you decide they should.
Authenticator app codes
Why does my server reject a correct Google Authenticator code?
Most often the server's clock or the phone's clock is off by more than one 30-second step, the server only accepts the current step, the secret was decoded as plain text instead of base32, or the code was compared as a number and lost a leading zero. Check the server clock first, accept one step either side, and decode the secret as base32.
How many time steps should a TOTP server accept?
RFC 6238 recommends allowing at most one time step of network delay. Most servers accept the previous, current and next 30-second step, which covers a phone clock up to about 30 seconds off and a user who types slowly. A wider window makes guessing easier.
Can the same TOTP code be used twice?
It must not be. RFC 6238 says the verifier must not accept a second attempt with the same code after a successful check. Store the last time step that succeeded for each user and reject any code from that step or earlier.
Do authenticator apps support SHA-256 or 8-digit codes?
Not reliably. Google Authenticator and several others ignore the algorithm, digits and period parameters in the otpauth URI and always make 6-digit SHA-1 codes every 30 seconds. Use those defaults unless you control the app.
Which authenticator apps work?
Any app that reads TOTP QR codes, including Google Authenticator, Microsoft Authenticator, Authy, 1Password, Bitwarden and the iPhone's own Passwords app. Codes are 6 digits, every 30 seconds, SHA-1, as RFC 6238 sets out.
What name does the user see in their authenticator app?
Your app's name in SignOps and the label you send, such as Your App (ananya@example.in). Pass issuer to show a different name. SignOps never appears.
The user's codes are always wrong. Why?
Almost always the phone's clock. SignOps accepts the code 30 seconds early or late. Ask the user to turn on automatic date and time, or use a backup code.
Can a user have two authenticator apps?
One authenticator per user. They can scan the same QR into two apps at enrolment, or keep the backup codes for when the phone is lost.
OTP and email
Does Better Auth send the OTP email itself?
No. The email OTP plugin creates and checks the code, and calls your sendVerificationOTP function to deliver it. You choose the email provider.
What are the Better Auth email OTP defaults?
In Better Auth 1.7.28, read from its source and run on 24 November 2026, a 6-digit code, a 300-second expiry, 3 tries, and the code stored in plain text. Change them with otpLength, expiresIn, allowedAttempts and storeOTP. The option for tries is allowedAttempts; maxAttempts is not read.
Can I use Better Auth email OTP for sign-up and password reset?
Yes. The type passed to sendVerificationOTP tells you which flow it is (sign-in, email-verification, forget-password or change-email), so you can word each email differently.
Is email OTP more secure than SMS OTP?
It avoids SIM swap and SMS interception, but anyone with access to the inbox can read it, and both can be phished. Neither is as strong as a passkey or a signed push approval.
Which is cheaper in India, email or SMS OTP?
Email. An SMS OTP costs about Rs 0.13 to Rs 0.25 from Indian providers and needs DLT registration; an email code costs a few paise to send, and Rs 0.025 on SignOps.
Do I need DLT for email OTP?
No. DLT applies to commercial SMS in India. Email codes need a verified sending domain instead.
Does Firebase Auth support email OTP?
Not as a 6-digit code. Firebase Auth offers email link sign-in, where the user taps a link in the email. For a typed code, generate and check it yourself and sign the user in with a custom token.
Is a custom token safe to use for this?
Yes, if only your server creates it and only after it has checked the code. Custom tokens are created with the Admin SDK and your service account, which never leaves the server.
Why not just use email link sign-in?
Links open in whatever browser the email app chooses, which often is not the app the user started in. A code the user types back into the same screen avoids that, which matters most on phones.
Does Laravel have email OTP built in?
No. Laravel's own authentication signs in with a password, and Fortify adds TOTP two-factor from an authenticator app. A 6-digit code by email is something you add, either with your own table and mailer or with an API that makes, sends and checks the code.
Where should the otp_id be kept in Laravel?
In the session. The send action puts it there and the verify action reads it, so the browser only ever posts the 6 digits.
How do I stop people using my form to email strangers?
Put the throttle middleware on the send route, pass the user's IP to the API so it limits per address and per IP, and add a check such as Cloudflare Turnstile to the form.
How long does the code last?
With SignOps, 10 minutes and 5 tries. A resend to the same address waits 30 seconds, and one address gets at most 5 codes an hour by default.
Do I need Auth.js or NextAuth to add email OTP in Next.js?
No. Two Route Handlers are enough, one to send the code and one to check it, plus your own session once the code is valid. If you already use an auth library, call the same two endpoints from its custom sign-in step.
Where should the otp_id be kept between the two steps?
In an httpOnly cookie set by the send handler. The browser never reads it, and the verify handler takes it from the cookie, so the client only sends the 6 digits.
Can I call the OTP API from a client component?
No. The API key is a secret and must stay on the server. Call it from a Route Handler or a Server Action, and keep the key in an environment variable without the NEXT_PUBLIC_ prefix.
How long does an email code last?
With SignOps, 10 minutes and 5 tries. A resend to the same address waits 30 seconds, and one address gets at most 5 codes an hour by default.
Can a React Native app call an email OTP API directly?
No. The API key is a secret, and anything shipped in an app bundle can be read. The app calls your own backend, and your backend calls the OTP API with the key.
How do I get the phone to offer the code from the email?
Set autoComplete to one-time-code on the TextInput, which works on iOS and Android, and textContentType to oneTimeCode on iOS. Whether a code from an email is offered depends on the phone's OS and mail app.
Where should the app keep the session after the code is checked?
In the device's secure storage, such as expo-secure-store, which uses the Keychain on iOS and the Keystore on Android. Not in AsyncStorage, which is not encrypted.
How long does the code last?
With SignOps, 10 minutes and 5 tries. A resend to the same address waits 30 seconds, and one address gets at most 5 codes an hour by default.
How much does an SMS OTP cost in India?
About Rs 0.13 to Rs 0.25 per message from Indian providers in 2026, depending on volume, plus 18% GST. MSG91 lists Rs 0.25 for small packs down to Rs 0.16 at high volume, and Rs 0.13 by quote. Twilio's list price to India is $0.0832, about Rs 7.90.
What do 1,000 OTP SMS cost in India?
About Rs 130 to Rs 250 plus 18% GST from Indian providers such as MSG91, Gupshup and Kaleyra, depending on the provider and how many you buy. Resends add to it. With 20% of users tapping Resend, 1,000 sign-ins at Rs 0.17 cost about Rs 204.
Is DLT registration mandatory for OTP SMS?
Yes. Under TRAI's TCCCPR 2018 rules, every commercial SMS sent to Indian numbers, OTPs included, must come from a registered entity, sender id (header) and template on a DLT platform. Unregistered templates are blocked by the operators.
Can I send OTP without DLT registration?
Not by SMS through legitimate Indian routes. You can verify users without SMS, and so without DLT, by email OTP, WhatsApp authentication messages, push approval on a trusted phone, or passkeys.
Is WhatsApp OTP cheaper than SMS?
In India, Meta lists authentication messages at about Rs 0.115 each plus GST, which is a little cheaper than most SMS OTP routes, before any provider's fee.
What is Supabase's email rate limit on the free tier?
Supabase's built-in email sender is meant for testing and allows only a few auth emails an hour per project (2 an hour at the time of writing). Check Authentication, Rate Limits in your project for the current figure.
How do I increase the Supabase email rate limit?
Set up custom SMTP under Authentication, Emails, SMTP Settings with any email provider. Once custom SMTP is on, you can raise the email limit on the Rate Limits page.
Does Supabase charge for email OTP?
Supabase does not charge per email OTP; it sends through its built-in sender for testing or through the SMTP provider you configure, who bills you for the emails.
Why do codes have to come from my own domain?
Inboxes trust mail signed by the domain the user knows. Codes from your domain, signed with its DKIM key, land in the inbox and look like yours. It also keeps one customer's sending from affecting another's.
Will adding the DNS records change my existing email?
No. The records go on names Amazon SES gives (ending in ._domainkey) and on auth. under your domain. Your MX records, Google Workspace or Zoho mail are not touched. Add the DMARC record only if your domain has none.
Can I send from a subdomain such as mail.example.com?
Use your main domain. SignOps adds auth. under it for bounces, and users trust the domain they know.
How long does verification take?
Most DNS hosts take a few minutes. SignOps checks every 10 minutes and shows Verified when all records are found. If they are not found in 72 hours, it shows Records not found and keeps checking, so it verifies whenever you add them.
Code or magic link?
A code works when the user reads email on another device, such as a laptop sign-in with mail on the phone. A link is one tap when they read email on the same device. Many apps send a code and offer a link as well.
Providers and pricing
Which is the cheapest OTP service provider in India?
For SMS, MSG91 lists Rs 0.16 to Rs 0.25 a message by pack size, and Rs 0.13 by quote. Email OTP is cheaper than any SMS, at Rs 0.025 a code on SignOps, and passkeys cost nothing per sign-in.
Can I get an OTP API without DLT?
For SMS in India, no. Every OTP SMS needs a DLT-registered entity, header and template. Email OTP, WhatsApp authentication messages, push approval and passkeys need no DLT.
What does MSG91 charge for OTP?
SMS OTP is Rs 0.25 a message for small packs, down to Rs 0.16 at high volume and Rs 0.13 by quote, plus GST (MSG91's price page, 16 November 2026). Its email plans start free for 5,000 emails a month, then Rs 2,000 a month for 1 lakh emails with extra emails at Rs 0.02.
Is there a free OTP API?
Most providers give trial credit rather than a free plan. SignOps gives 1,000 email codes, 100 push approvals and 1,000 passkey sign-ins a month free, with no card until you pass a free amount.
How much does Twilio Verify cost in India?
Twilio Verify charges $0.05 per successful verification, about Rs 4.75, plus a channel fee for SMS. Twilio's SMS to India lists at $0.0832 a message, about Rs 7.90. Verify Push is $0.05 a verification with no extra channel fee.
What is a cheaper alternative to Twilio Verify Push?
SignOps Starter includes 100 approvals a day and Pro 300; past that an approval is Rs 0.02, about 240 times less than Verify Push. The free plan has 100 a month.
How much does Twilio Verify cost for 1 lakh verifications a month?
At the list price of $0.05 each, about Rs 4,75,000 a month before GST, plus SMS fees if the code goes by SMS. Twilio offers volume pricing by quote at that size.
Is there a cheaper alternative to Twilio Verify for email OTP?
SignOps sends 6-digit email codes from your own domain at Rs 0.025 a code, with 1,000 free every month. Twilio Verify charges $0.05 a verification and sends email through your own SendGrid account.
Does SignOps support SMS like Twilio Verify?
No. SignOps covers push approval, passkeys, authenticator app codes (TOTP) and email OTP. For SMS in India, use a DLT-registered provider.
Send your first push today.
Free for 1,000 push devices, 100 approvals and 1,000 passkey sign-ins a month, and 1,000 email codes a month. No card until you pass a free amount.