From d9cde1451a98591aa89ebd56586f88f49d4c9a91 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Sun, 11 Sep 2022 15:07:09 +0300 Subject: [PATCH] use new API --- lib/strategy.js | 6 +++--- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/strategy.js b/lib/strategy.js index 5e78851..d49732c 100644 --- a/lib/strategy.js +++ b/lib/strategy.js @@ -30,11 +30,11 @@ var OAuth2Strategy = require('passport-oauth2') */ function Strategy(options, verify) { options = options || {}; - options.authorizationURL = options.authorizationURL || 'https://icynet.eu/oauth2/authorize'; - options.tokenURL = options.tokenURL || 'https://icynet.eu/oauth2/token'; + options.authorizationURL = options.authorizationURL || 'https://secure.icynet.eu/oauth2/authorize'; + options.tokenURL = options.tokenURL || 'https://secure.icynet.eu/oauth2/token'; options.scopeSeparator = options.scopeSeparator || ' '; - this._userProfileURL = options.userProfileURL || 'https://icynet.eu/oauth2/user'; + this._userProfileURL = options.userProfileURL || 'https://api.icynet.eu/api/user'; OAuth2Strategy.call(this, options, verify); this.name = 'icynet'; diff --git a/package-lock.json b/package-lock.json index 5cfc9fb..c6caa23 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "passport-icynet", - "version": "0.0.1", + "version": "0.0.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "passport-icynet", - "version": "0.0.1", + "version": "0.0.3", "license": "MIT", "dependencies": { "passport-oauth2": "^1.2.0" diff --git a/package.json b/package.json index e12ce52..c9c04f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "passport-icynet", - "version": "0.0.2", + "version": "0.0.3", "description": "Passport strategy for authentication with Icy Network (icynet.eu)", "main": "lib/index.js", "types": "lib/index.d.ts",