@badgateway/oauth2-client
Advanced tools
Comparing version 2.0.13 to 2.0.14
{ | ||
"name": "@badgateway/oauth2-client", | ||
"version": "2.0.13", | ||
"version": "2.0.14", | ||
"description": "OAuth2 client for browsers and Node.js. Tiny footprint, PKCE support", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -6,3 +6,7 @@ # OAuth2 client for Node and browsers | ||
This OAuth2 client is only **3KB** gzipped, it has **0** dependencies and | ||
relies on modern APIs like `fetch()` and [Web Crypto][4] which are built in | ||
Node 18 (but it works with Polyfills on Node 14 and 16). | ||
## Highlights | ||
@@ -32,3 +36,3 @@ | ||
```typescript | ||
import { OAuth2Client } from 'fetch-mw-oauth2'; | ||
import { OAuth2Client } from '@badgateway/oauth2-client'; | ||
@@ -200,4 +204,2 @@ const client = new OAuth2Client({ | ||
); | ||
const oauth2Token = await authorizationCode.getToken(codeResponse); | ||
``` | ||
@@ -222,3 +224,3 @@ | ||
```typescript | ||
import { OAuth2Client, OAuth2Fetch } from 'fetch-mw-oauth2'; | ||
import { OAuth2Client, OAuth2Fetch } from '@badgateway/oauth2-client'; | ||
@@ -343,3 +345,3 @@ const client = new OAuth2Client({ | ||
import { Client } from 'ketting'; | ||
import { OAuth2Client, OAuth2Fetch } from 'fetch-mw-oauth2'; | ||
import { OAuth2Client, OAuth2Fetch } from '@badgateway/oauth2-client'; | ||
@@ -379,3 +381,3 @@ /** | ||
```typescript | ||
import { OAuth2Client } from 'fetch-mw-oauth2'; | ||
import { OAuth2Client } from '@badgateway/oauth2-client'; | ||
@@ -442,1 +444,2 @@ const client = new Client({ | ||
[3]: https://datatracker.ietf.org/doc/html/rfc7662 "OAuth 2.0 Token Introspection" | ||
[4]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API "Web Crypto API" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
174298
439