Authentication Diagnostic Tool

Debug OAuth login and session issues. This page shows detailed information about your authentication state.

Authentication Status: Not Authenticated

No authenticated user in context

Try logging in using the "Sign In" button in the navigation bar.

OAuth Flow Status
Checks if OAuth callback is setting session properly

Session User ID

Not Set

Session Token

Not Set

Bearer Token

Not Set

Diagnostic Instructions:

1. Check if session.userId is set (should be after OAuth callback)

2. Check if bearerToken.present is true (should be in preview panel)

3. If both are null/false, OAuth callback is not setting session properly

Session Storage Information
Details about express-session configuration

Session Middleware Active

Yes

Session Data

userId: null
userName: null
userEmail: null
sessionToken: null

Cookie Settings

httpOnly: true
secure: true
sameSite: none
domain: undefined
path: /
maxAge (ms): 604800000
Full Diagnostic Data
Complete request and authentication information

Headers

authorization: No Authorization header
cookie: 3 cookies
userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
origin: Unknown
referer: https://optskings-7rynnc4c.manus.space/diagnostic?manus_scraper=1

Request Context

url: /diagnostic.getAuthDiagnostics,diagnostic.checkAuth,diagnostic.testOAuthFlow,diagnostic.getSessionStorageInfo?batch=1&input=%7B%220%22%3A%7B%22json%22%3Anull%2C%22meta%22%3A%7B%22values%22%3A%5B%22undefined%22%5D%7D%7D%2C%221%22%3A%7B%22json%22%3Anull%2C%22meta%22%3A%7B%22values%22%3A%5B%22undefined%22%5D%7D%7D%2C%222%22%3A%7B%22json%22%3Anull%2C%22meta%22%3A%7B%22values%22%3A%5B%22undefined%22%5D%7D%7D%2C%223%22%3A%7B%22json%22%3Anull%2C%22meta%22%3A%7B%22values%22%3A%5B%22undefined%22%5D%7D%7D%7D
method: GET
hostname: xbm55blvlx-mykbunajna-uk.a.run.app
ip: ::ffff:169.254.169.126
protocol: http
secure: false

Cookies

_ga: GA1.1.550364237.1772341888...
_ga_D2K3K02XPF: GS2.1.s1772341887$o1$g1$t1772341892$j55$l0$h0...
_ga_1QSFEEG3ZR: GS2.1.s1772341957$o1$g0$t1772341958$j59$l0$h0...

Environment

nodeEnv: production
isProduction: true

Timestamp

2026-03-01T05:13:45.845Z

Troubleshooting Guide

Issue: "Not Authenticated" but I just logged in

  • Check "Session User ID" in OAuth Flow Status - should not be empty
  • Check "Session Middleware Active" - should be "Yes"
  • Check "httpOnly" and "secure" in Cookie Settings - should be true
  • Try logging out and logging back in

Issue: Session User ID is empty

  • OAuth callback is not setting the session properly
  • Check server logs for errors during OAuth callback
  • Verify OAUTH_SERVER_URL and VITE_APP_ID are configured correctly

Issue: Bearer Token is present but not authenticated

  • Token might be expired or invalid
  • Try refreshing the page
  • Check browser console for token validation errors

Issue: sameSite is "lax" but should be "none"

  • This is expected for development environments
  • On production (HTTPS), sameSite should be "none" and secure should be true