Sign in
Synq’s form on your own page: a passkey, an emailed code or a password, with no trip to the hosted page.
Built on @synqauth/react over @synqauth/nextjs’s route mount, so it needs a server of yours. In a single-page app, createSynqClient from @synqauth/js signs in: signIn(), then handleCallback() where Synq sends the browser back. @synqauth/js in the docs
New here?
src/examples/sign-in/Form.tsx'use client'
import { SignInForm, SignedIn, SignedOut, UserButton } from '@synqauth/react'
// Sign-in on your own page with Synq's form: a passkey where the browser can
// use the brand's here, then an emailed code or a password, a sign-up
// screen, and the new address's code. The route mount takes each step to
// Synq as the app (own-UI sign-in, on for the app in the dashboard), and the
// page never holds a token. Whatever only the hosted page can do, such as a
// token gate, goes there.
export function SignInWithForm() {
return (
<>
<SignedOut>
<SignInForm returnTo="/build/sign-in?variant=form" />
</SignedOut>
<SignedIn>
<UserButton accountHref="/build/profile" />
</SignedIn>
</>
)
}