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