Skip to content

fix(frontend): pass login token to getMe#906

Open
Pcmhacker-piro wants to merge 1 commit into
SdSarthak:mainfrom
Pcmhacker-piro:fix/login-token-auth-state
Open

fix(frontend): pass login token to getMe#906
Pcmhacker-piro wants to merge 1 commit into
SdSarthak:mainfrom
Pcmhacker-piro:fix/login-token-auth-state

Conversation

@Pcmhacker-piro
Copy link
Copy Markdown

Summary

Closes #306

Stores the fresh login token before fetching the current user and passes that token directly to getMe() for the first authenticated request after login. This prevents the fresh-session /auth/me call from depending only on interceptor state and avoids a 401 after a successful login.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor
  • Tests
  • Infra / CI

Checklist

  • I have read CONTRIBUTING.md
  • My code follows the project style
  • I have added/updated tests where relevant
  • Tests/lint pass locally (if available)
  • I have not committed .env or any secrets
  • I have updated documentation if needed

Screenshots (if UI change)

@Pcmhacker-piro
Copy link
Copy Markdown
Author

@SdSarthak pls check this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(frontend): getMe() called before token is stored in auth state — potential 401 on fresh login

1 participant