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

access token generation #98

Merged
merged 3 commits into from
Sep 6, 2024
Merged

Conversation

recursivetree
Copy link
Contributor

This PR allows seat to refresh an access token without making an esi call, for example for tokens that only have the publicData scope.

Since I don't want to have a major release just for this, we can't modify the fetcher interface (that currently hold the access token refresh logic) and add a new method to refresh the access token. Therefore, I extracted all the access token refresh logic from the fetcher into a new AccessTokenRefresher class. The fetcher uses that to get access tokens.

The Eseye class itself doesn't implement an interface, so we can just add a method to refresh the access token in there. Internally, it also uses the AccessTokenRefresher

@Crypta-Eve Crypta-Eve merged commit 53f92a0 into eveseat:3.x Sep 6, 2024
3 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.

2 participants