Teams SSO Debug

This page is public. Remove before production.

1. NextAuth Session (client)

{
  "status": "loading",
  "user": null
}

2. Teams Context (TeamsAuthProvider)

{
  "isInTeams": false,
  "isTeamsSsoInProgress": true
}

3. Teams Hook (useTeams)

{
  "isInTeams": false,
  "isLoading": true,
  "hasToken": false,
  "tokenLength": 0,
  "tokenPreview": null,
  "error": null
}

4. Client Cookies

5. Server-Side Debug (/api/auth/debug)

Loading...

6. SessionStorage

{
  "teams-sso-attempted": null
}

7. Test SSO Endpoint

No Teams token available — not in Teams or SDK failed.

8. Actions

9. Window / Navigator

{
  "window.location.href": "",
  "window.location.protocol": "",
  "window.self === window.top": null,
  "inIframe": null
}