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

"Wear out" access tokens instead of making new ones every request #6

Open
axellorreyne opened this issue Feb 20, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@axellorreyne
Copy link
Contributor

axellorreyne commented Feb 20, 2023

At this time, the extension will create a new access token every request using the client's id and secret generated from their login credentials.

Also at this time, the extension will catch any request made by the browser and try and alter it's headers.
To prevent catching it's own access token request and therefore creating an infinite loop, I added the following to the listener:

// TODO: find a more elegant way to catch the access token creation request called from getAccessToken()
if (details.method === "POST") {
return
}

The extension should instead wear out these temporary access tokens by storing them, checking their validity on requests and creating a new one when necessary.

@axellorreyne axellorreyne added the enhancement New feature or request label Feb 20, 2023
@axellorreyne axellorreyne self-assigned this Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant