@synqauth/plugin-magic-link
v0.3.0
Published
A Synq plugin that sends people from your own UI to the hosted page's emailed code or magic link.
Readme
@synqauth/plugin-magic-link
A Synq plugin for email codes and magic links from your own UI.
Synq is customer identity for businesses: an OpenID Connect issuer for each of your brands, with Solana wallet, social, email and passkey sign-in. The documentation is at docs.synq.build.
This package is at 0.x, so a minor release can change its API: see its CHANGELOG.md.
Usage
Start an emailed code or magic link from your own UI: the person types their address on your page, and the brand's hosted page sends the email and takes the code or link. You bring no email transport.
To take the code on your own page instead, with no trip to the hosted page, use own-UI sign-in: useSignIn().emailCode or <SignInForm> from @synqauth/react.
import { magicLinkPlugin } from '@synqauth/plugin-magic-link'
const { signInUrl } = magicLinkPlugin().actions(request)
location.assign(signInUrl({ email: '[email protected]', returnTo: '/account' }))License
MIT
