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

[New] Token Refresh Logic #110

Merged
merged 6 commits into from
Feb 23, 2024
Merged

[New] Token Refresh Logic #110

merged 6 commits into from
Feb 23, 2024

Conversation

Jithesh-poojary
Copy link
Collaborator

@Jithesh-poojary Jithesh-poojary commented Feb 22, 2024

Changes to address

}
else
isTokenRefreshed = false;
} while (isTokenRefreshed);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Why do we have to refresh the token in an infinite loop here? Given server can/ can not be reachable?
  2. Please write tests for the scenario covering 4xx response and with refreshToken() things will work.

@v1r3n v1r3n merged commit 0afd23f into conductor-sdk:main Feb 23, 2024
1 of 2 checks passed
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.

Refresh token when expired
3 participants