What is application in that sentence? The API?
Isn't that what this lib does?
A client-side Javascript SDK for authenticating with OAuth2 web services and querying their REST API's.
- I assume the API issues the token - This lib receives it and uses it for subsequent calls - The token is destroyed when browser session is closed.
I'm baffled this actually works. The entire idea is that the `client_id` can be disclosed to the user (via the login redirect) because the `client_secret` is required to verify the application's identity.
From my experience memory is safe between origins in the same way cookies are. And it is the dev's responsibility to not do something stupid with the token like window.FacebookToken = OAuthToken;. But that holds for traditional session cookies as well.