v0.3.3
Better state management.
- Two changes are meant to make it easier to use m3api-oauth2 correctly: A new
isCompleteOAuthSession()function is available, andinitOAuthSession()is now idempotent. This should make it unnecessary for users of the library to track or deduce the current state of the authorization flow (i.e., whetherinitOAuthSession()was already called, and whethercompleteOAuthSession()was already called). IfisCompleteOAuthSession()returnsfalse, the user is not logged yet – callinitOAuthSession()to get the authorization URL (it doesn’t matter if it was already called or not); ifisCompleteOAuthSession()returnstrue, the user is logged in. - Updated dependencies.