BitySA / oauth2-auth-code-pkce

An OAuth 2.0 client that ONLY supports the Authorization Code flow with PKCE support.
Apache License 2.0
52 stars 17 forks source link

API to clear state? #6

Closed ispyinternet closed 4 years ago

ispyinternet commented 4 years ago

Should this library expose a logout / or reset state API?

lf94 commented 4 years ago

It probably should. I thought that it was unnecessary because all that's needed to clear state, is to clear oauth2authcodepkce-state property in localstorage.

In the next release I'll add .destroyState(), which should do as the name implies :)

lf94 commented 4 years ago

I called it reset() instead. It's published in 2.7.1.