page.tsx 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. 'use client';
  2. import { auth } from '../../lib/auth';
  3. /**
  4. * Fastest pilot: send the user to Briven-hosted sign-in, then back to /dashboard.
  5. * For an embedded form, swap this for <BrivenSignIn /> from @briven/auth/react.
  6. */
  7. export default function SignInPage() {
  8. return (
  9. <main style={{ fontFamily: 'system-ui', padding: 48, maxWidth: 420 }}>
  10. <h1 style={{ fontSize: 22, marginBottom: 12 }}>Sign in</h1>
  11. <p style={{ color: '#555', marginBottom: 24, lineHeight: 1.5 }}>
  12. This pilot uses Briven&apos;s hosted sign-in page. After you sign in, you
  13. return to <code>/dashboard</code>.
  14. </p>
  15. <button
  16. type="button"
  17. onClick={() => {
  18. window.location.assign(auth.hostedPageURL('sign-in', '/dashboard'));
  19. }}
  20. style={{
  21. padding: '10px 16px',
  22. borderRadius: 8,
  23. border: '1px solid #222',
  24. background: '#111',
  25. color: '#fff',
  26. cursor: 'pointer',
  27. }}
  28. >
  29. Continue to sign in
  30. </button>
  31. </main>
  32. );
  33. }