Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol. wisp.place

clear

Changed files
+4
src
routes
+4
src/routes/auth.ts
··· 32 33 if (!session) { 34 logger.error('[Auth] OAuth callback failed: no session returned') 35 return c.redirect('/?error=auth_failed') 36 } 37 ··· 70 } catch (err) { 71 // This catches state validation failures and other OAuth errors 72 logger.error('[Auth] OAuth callback error', err) 73 return c.redirect('/?error=auth_failed') 74 } 75 }, { ··· 117 const auth = await authenticateRequest(client, c.cookie) 118 119 if (!auth) { 120 return { authenticated: false } 121 } 122 ··· 126 } 127 } catch (err) { 128 logger.error('[Auth] Status check error', err) 129 return { authenticated: false } 130 } 131 }, {
··· 32 33 if (!session) { 34 logger.error('[Auth] OAuth callback failed: no session returned') 35 + c.cookie.did.remove() 36 return c.redirect('/?error=auth_failed') 37 } 38 ··· 71 } catch (err) { 72 // This catches state validation failures and other OAuth errors 73 logger.error('[Auth] OAuth callback error', err) 74 + c.cookie.did.remove() 75 return c.redirect('/?error=auth_failed') 76 } 77 }, { ··· 119 const auth = await authenticateRequest(client, c.cookie) 120 121 if (!auth) { 122 + c.cookie.did.remove() 123 return { authenticated: false } 124 } 125 ··· 129 } 130 } catch (err) { 131 logger.error('[Auth] Status check error', err) 132 + c.cookie.did.remove() 133 return { authenticated: false } 134 } 135 }, {