next-auth-zbd-provider
Advanced tools
Comparing version 0.3.9 to 0.4.0
@@ -1,2 +0,2 @@ | ||
export declare const getZBDProvider: ({ clientId, clientSecret, apiKey, scope, }: { | ||
export declare const getZBDProvider: ({ clientId, clientSecret, apiKey, scope, zbdEnv, }: { | ||
clientId: any; | ||
@@ -6,2 +6,3 @@ clientSecret: any; | ||
scope: any; | ||
zbdEnv: any; | ||
}) => any; |
10
index.js
@@ -13,8 +13,8 @@ "use strict"; | ||
exports.getZBDProvider = void 0; | ||
const ZBD_AUTH_URL = 'https://api.zebedee.io/v1/oauth2/authorize'; | ||
const ZBD_TOKEN_URL = 'https://api.zebedee.io/v1/oauth2/token'; | ||
const ZBD_USER_DATA_URL = 'https://api.zebedee.io/v1/oauth2/user'; | ||
const ZBD_WALLET_DATA_URL = 'https://api.zebedee.io/v1/oauth2/wallet'; | ||
const ZBD_DEFAULT_SCOPES = 'user,wallet'; | ||
const getZBDProvider = ({ clientId, clientSecret, apiKey, scope = ZBD_DEFAULT_SCOPES, }) => { | ||
const getZBDProvider = ({ clientId, clientSecret, apiKey, scope = ZBD_DEFAULT_SCOPES, zbdEnv = "api", }) => { | ||
const ZBD_AUTH_URL = `https://${zbdEnv}.zebedee.io/v1/oauth2/authorize`; | ||
const ZBD_TOKEN_URL = `https://${zbdEnv}.zebedee.io/v1/oauth2/token`; | ||
const ZBD_USER_DATA_URL = `https://${zbdEnv}.zebedee.io/v1/oauth2/user`; | ||
const ZBD_WALLET_DATA_URL = `https://${zbdEnv}.zebedee.io/v1/oauth2/wallet`; | ||
const provider = { | ||
@@ -21,0 +21,0 @@ id: "zbd", |
{ | ||
"name": "next-auth-zbd-provider", | ||
"version": "0.3.9", | ||
"version": "0.4.0", | ||
"description": "NextAuth.js provider for ZBD OAuth2", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
@@ -17,4 +17,9 @@ <p align="center"> | ||
## Building | ||
- Edit the `src/index.ts` file to make changes to the provider. | ||
- `yarn build` builds the top level index.js and index.d.ts. | ||
## License | ||
MIT |
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
8642
149
24