Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@simeng-li
Copy link
Contributor

@simeng-li simeng-li commented Jun 3, 2024

Summary

Bug fix for the issue

  • Issue: LogtoClient.getUserInfo method throws an not authenticated error when the initial access token is expired.
  • Expected behavior: The method should refresh the access token and return the user info properly.
  • Fix: Always get the access token by calling LogtoClient.getAccessToken, which will refresh the token automatically if it's expired.

Testing

Test locally with simulator

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

simeng-li added 2 commits June 3, 2024 10:55
should fetch new access token if the access token expires
bump version
@simeng-li simeng-li requested review from a team, charIeszhao and wangsijie and removed request for a team June 3, 2024 03:02
@simeng-li simeng-li changed the title fix: fix getUserInfo no_authenticated bug fix: fix getUserInfo not_authenticated bug Jun 3, 2024
@simeng-li simeng-li merged commit 08e2f3c into master Jun 3, 2024
@simeng-li simeng-li deleted the simeng-get-user-info-bug-fix branch June 3, 2024 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants