m3api extension package to authenticate using OAuth 2.0
ISC License
m3api-oauth2/requireCrypto
request option has been removed, as we no longer support any platform where the Web Crypto API is not available: it is now always used unconditionally.Published by lucaswerkmeister over 1 year ago
Auto-refresh \o/
refreshOAuthSession()
by hand, and sessions shouldPublished by lucaswerkmeister almost 2 years ago
No code changes from v0.1.0, just a fix to the GitHub Actions workflow pushing the release to npm. (v0.1.0 could not be pushed to npm, unfortunately.)
To reiterate, v0.1.0 and v0.1.1 include:
OAuthClient
class and initOAuthSession()
and completeOAuthSession()
functions, to perform the OAuth 2.0 authorization code flow.refreshOAuthSession()
function, to perform the refresh flow (albeit not yet automatically).serializeOAuthSession()
and deserializeOAuthSession()
functions, to serialize the OAuth state of a session between requests.Published by lucaswerkmeister almost 2 years ago
Initial release, including:
OAuthClient
class and initOAuthSession()
and completeOAuthSession()
functions, to perform the OAuth 2.0 authorization code flow.refreshOAuthSession()
function, to perform the refresh flow (albeit not yet automatically).serializeOAuthSession()
and deserializeOAuthSession()
functions, to serialize the OAuth state of a session between requests.