use new API

This commit is contained in:
Evert Prants 2022-09-11 15:07:09 +03:00
parent 07e0eef5bc
commit d9cde1451a
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
3 changed files with 6 additions and 6 deletions

View File

@ -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';

4
package-lock.json generated
View File

@ -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"

View File

@ -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",