Manual Entry kinda works

This commit is contained in:
2026-03-20 02:30:15 -05:00
parent 2110c13ea1
commit 310d9faf33
9 changed files with 1029 additions and 88 deletions

View File

@@ -21,7 +21,8 @@ final class AppState {
// If a session cookie exists, validate it with the server on launch
let hasCookie = HTTPCookieStorage.shared.cookies?.contains {
$0.name == "__Secure-better-auth.session_token" || $0.name == "better-auth.session_token"
($0.name == "__Secure-better-auth.session_token" || $0.name == "better-auth.session_token")
&& !$0.value.isEmpty
} ?? false
if hasCookie {
// Optimistically show the authenticated UI, then validate