fixes for get auth token

This commit is contained in:
Ishaan Jaff 2025-03-03 17:27:50 -08:00
parent 2c8063b072
commit 2c0f2e8fac

View file

@ -66,7 +66,7 @@ export function getAuthToken() {
}
return null;
})
.filter(cookie => cookie !== null);
.filter((cookie): cookie is { name: string; timestamp: number; value: string } => cookie !== null);
if (tokenCookies.length > 0) {
// Sort by timestamp (newest first)