Login with Link
  • Login with Link (auth back-end only)
  • 🤝Use API only
    • About this option: API only
    • Lookup email
      • Start verification
    • Authenticate
  • 💻OIDC / OAuth (hosted login page)
    • About this option: Open ID Connect (OIDC)
    • OIDC / OAuth
Powered by GitBook
On this page
  • Request
  • Response
  • Notes
  1. Use API only
  2. Lookup email

Start verification

"Start verification" means "ask Stripe to send the six-digit code"

Request

POST to the following URL

POST https://loginwithlink.com/api/start_verification  

Include:

  • The `client_secret` you received in step 1 (lookup).

  • The `email` of the consumer.

Response

The response will confirm that an SMS has been sent, and will again show you redacted phone number to which it has been sent.

(You can display this phone number to your user.)

Notes

  • For now this is a separate step.

    • You might want to check if the user exists on Stripe just to update the button text from "Sign up" to "Log in".

  • Or, (to think about this), we could have this combined with the previous step.

    • In fact, that might be a good idea… so a merchant doesn't look up loads of emails without risking spamming all their users with surprise (and concerning) SMS codes.

PreviousLookup emailNextAuthenticate

Last updated 1 year ago

🤝