src/examples/sign-in/Form.tsx

Every source

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>
    </>
  )
}