Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Refresh Token Flow Not Working After Updating Roles #32

Open
2 tasks
anshpreet3101 opened this issue Sep 26, 2024 · 0 comments
Open
2 tasks

bug: Refresh Token Flow Not Working After Updating Roles #32

anshpreet3101 opened this issue Sep 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@anshpreet3101
Copy link

Describe the bug

I am using the management API to update the roles of a user. The roles get updated successfully on the server. However, when I refresh the token to get the updated roles using getRefreshToken() method , the roles in the token remain the same as before. Only the expiry time is updated, while the roles and other data remain unchanged.

Expected behavior

The new token should reflect the updated roles from the authentication server.
Roles Updates when user redo the browser based signIn process.

How to reproduce?

  • Authenticate a user using Logto in an Expo application.
  • Change the user's roles on the authentication server using Logto Management API.
  • Refresh the token in the Expo application using getRefreshToken().

Context

  • Logto Cloud
  • Self-hosted, Logto version = 1.2.0
    • Container (Docker image)
  • Raw Node.js
@anshpreet3101 anshpreet3101 added the bug Something isn't working label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant