Skip to content

fix(ws-header): Ensure Authorization was initialized to fetch access token changes without DOMEvent #147

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

Merged
merged 1 commit into from
Nov 28, 2017

Conversation

fragsalat
Copy link
Contributor

For applications which uses the authorization before the header is attached to the DOM it is hard to read the ws-auth-changed event.
Therefore I ensure the authorization is initialized statically with the header class so that it is possible to listen for changes via

WSHeader.authorization.onAccessTokenChange(token => /* do something */)

@fragsalat fragsalat merged commit 41ec7b7 into master Nov 28, 2017
@fragsalat fragsalat deleted the ws-header-logging branch November 28, 2017 13:39
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