Manual Entry kinda works
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user