The best way to control Claude Code, Codex and more from any computer or phone

main
html 72 lines 2 KB
Raw
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <meta charset="utf-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1" />
6 <title>Better Auth on Cloudflare</title>
7 <style>
8 body {
9 max-width: 44rem;
10 margin: 3rem auto;
11 padding: 0 1rem;
12 font:
13 1rem/1.5 system-ui,
14 sans-serif;
15 }
16 label {
17 display: block;
18 margin-top: 1rem;
19 }
20 input {
21 display: block;
22 box-sizing: border-box;
23 width: 100%;
24 padding: 0.5rem;
25 }
26 button {
27 margin: 1rem 0.5rem 0 0;
28 padding: 0.5rem 0.75rem;
29 cursor: pointer;
30 }
31 output {
32 display: block;
33 margin-top: 1rem;
34 }
35 pre {
36 padding: 1rem;
37 background: #f2f4f6;
38 overflow: auto;
39 }
40 </style>
41 </head>
42 <body>
43 <h1>Better Auth on Cloudflare</h1>
44 <p>A same-origin client, an Effect HTTP API, and D1-backed sessions.</p>
45 <form id="auth-form">
46 <label for="name">Name (sign up only)</label>
47 <input id="name" name="name" autocomplete="name" />
48 <label for="email">Email</label>
49 <input id="email" name="email" type="email" autocomplete="username" required />
50 <label for="password">Password (at least 8 characters)</label>
51 <input
52 id="password"
53 name="password"
54 type="password"
55 autocomplete="current-password"
56 minlength="8"
57 required
58 />
59 <button id="sign-up" type="button">Sign up</button>
60 <button id="sign-in" type="button">Sign in</button>
61 <button id="sign-out" type="button">Sign out</button>
62 <button id="refresh" type="button">Refresh session</button>
63 </form>
64 <div id="providers"></div>
65 <output id="status" role="status" aria-live="polite">Loading…</output>
66 <h2>Session</h2>
67 <pre id="session">Not loaded</pre>
68 <h2>GET /api/me</h2>
69 <pre id="me">Not loaded</pre>
70 <script type="module" src="/ui.js"></script>
71 </body>
72 </html>