axios-oauth-client
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -9,9 +9,2 @@ declare function authorizationCode(axios: any, url: any, client_id: any, client_secret: any, redirect_uri: any, code?: any, scope?: any): (code?: any, scope?: any) => any; | ||
declare namespace _default { | ||
export { authorizationCode }; | ||
export { clientCredentials }; | ||
export { ownerCredentials }; | ||
export { refreshToken }; | ||
} | ||
export { _default as default }; | ||
export { authorizationCode, clientCredentials, ownerCredentials, refreshToken }; |
{ | ||
"name": "axios-oauth-client", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "OAuth 2.0 client utils for axios", | ||
@@ -29,5 +29,3 @@ "author": "Jonathon Hill <jhill9693@gmail.com>", | ||
"require": "./dist/index.cjs", | ||
"types": { | ||
".": "./dist/index.d.ts" | ||
} | ||
"types": "./dist/index.d.ts" | ||
} | ||
@@ -34,0 +32,0 @@ }, |
@@ -25,4 +25,4 @@ # axios-oauth-client | ||
import axios from 'axios' | ||
import oauth from 'axios-oauth-client' | ||
const getAuthorizationCode = oauth.authorizationCode( | ||
import { authorizationCode } from 'axios-oauth-client' | ||
const getAuthorizationCode = authorizationCode( | ||
axios.create(), | ||
@@ -43,4 +43,4 @@ 'https://oauth.com/2.0/token', // OAuth 2.0 token endpoint | ||
import axios from 'axios' | ||
import oauth from 'axios-oauth-client' | ||
const getOwnerCredentials = oauth.ownerCredentials( | ||
import { ownerCredentials } from 'axios-oauth-client' | ||
const getOwnerCredentials = ownerCredentials( | ||
axios.create(), | ||
@@ -60,4 +60,4 @@ 'https://oauth.com/2.0/token', // OAuth 2.0 token endpoint | ||
import axios from 'axios' | ||
import oauth from 'axios-oauth-client' | ||
const getClientCredentials = oauth.clientCredentials( | ||
import { clientCredentials } from 'axios-oauth-client' | ||
const getClientCredentials = clientCredentials( | ||
axios.create(), | ||
@@ -77,4 +77,4 @@ 'https://oauth.com/2.0/token', | ||
import axios from 'axios' | ||
import oauth from 'axios-oauth-client' | ||
const getRefreshToken = oauth.refreshToken( | ||
import { refreshToken } from 'axios-oauth-client' | ||
const getRefreshToken = refreshToken( | ||
axios.create(), | ||
@@ -81,0 +81,0 @@ 'https://oauth.com/2.0/token', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
10102
133