-
Notifications
You must be signed in to change notification settings - Fork 196
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
feat: use token events to subscribe to the token changes #2830
Conversation
Updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
@@ -254,11 +254,22 @@ export default class Alby implements Connector { | |||
token: this.config.oAuthToken, // initialize with existing token | |||
}); | |||
|
|||
//// Currently the JS SDK guarantees request of a new refresh token is done synchronously. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this comment is in the wrong place
Can you put it in the authClient.on("tokenRefreshFailed")
function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
Describe the changes you have made in this PR
listen for token changes via alby-js-sdk events
Type of change
(Remove other not matching type)
feat
: New feature (non-breaking change which adds functionality)How has this been tested?
trying oauth in extension
Checklist