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

clear cookies on auth error

Changed files
+6
public
+6
public/index.tsx
··· 321 window.location.href = '/editor' 322 return 323 } 324 } catch (error) { 325 console.error('Auth check failed:', error) 326 } finally { 327 setCheckingAuth(false) 328 } ··· 455 'Login failed:', 456 error 457 ) 458 alert('Authentication failed') 459 } 460 }}
··· 321 window.location.href = '/editor' 322 return 323 } 324 + // If not authenticated, clear any stale cookies 325 + document.cookie = 'did=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Lax' 326 } catch (error) { 327 console.error('Auth check failed:', error) 328 + // Clear cookies on error as well 329 + document.cookie = 'did=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Lax' 330 } finally { 331 setCheckingAuth(false) 332 } ··· 459 'Login failed:', 460 error 461 ) 462 + // Clear any invalid cookies 463 + document.cookie = 'did=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Lax' 464 alert('Authentication failed') 465 } 466 }}