extremely claude-assisted go game based on atproto! working on cleaning up and giving a more unique design, still has a bit of a slop vibe to it.

Pass platform to getOAuthClient for Cloudflare env access

Auth routes now pass event.platform to getOAuthClient so environment
variables can be read from Cloudflare's platform.env in production.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

+4 -4
+1 -1
src/routes/auth/callback/+server.ts
··· 5 5 6 6 export const GET: RequestHandler = async (event) => { 7 7 try { 8 - const oauth = await getOAuthClient(); 8 + const oauth = await getOAuthClient(event.platform); 9 9 const params = event.url.searchParams; 10 10 11 11 // Process the OAuth callback and get the session
+2 -2
src/routes/auth/login/+server.ts
··· 13 13 } 14 14 }; 15 15 16 - export const POST: RequestHandler = async ({ request }) => { 16 + export const POST: RequestHandler = async ({ request, platform }) => { 17 17 try { 18 18 const { handle } = await request.json(); 19 19 ··· 41 41 ); 42 42 } 43 43 44 - const oauth = await getOAuthClient(); 44 + const oauth = await getOAuthClient(platform); 45 45 const { url } = await oauth.authorize({ 46 46 target, 47 47 scope:
+1 -1
src/routes/auth/logout/+server.ts
··· 10 10 if (did) { 11 11 try { 12 12 // Revoke the OAuth tokens 13 - const oauth = await getOAuthClient(); 13 + const oauth = await getOAuthClient(event.platform); 14 14 await oauth.revoke(did); 15 15 } catch (error) { 16 16 // Log the error but still clear the session locally