From a07162c171c5120381b4ab68d2bd08c8f5518b8a Mon Sep 17 00:00:00 2001 From: jannyHou Date: Thu, 18 Jun 2020 01:12:34 -0400 Subject: [PATCH] fix: update the default oauth2 provider --- examples/passport-login/package.json | 2 +- examples/passport-login/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/passport-login/package.json b/examples/passport-login/package.json index 3b17ff1652ae..58e33f77c609 100644 --- a/examples/passport-login/package.json +++ b/examples/passport-login/package.json @@ -41,6 +41,7 @@ "@loopback/authentication-passport": "^2.1.7", "@loopback/boot": "^2.3.3", "@loopback/core": "^2.8.0", + "@loopback/mock-oauth2-provider": "^0.1.1", "@loopback/openapi-v3": "^3.4.3", "@loopback/repository": "^2.7.0", "@loopback/rest": "^5.1.1", @@ -78,7 +79,6 @@ "@loopback/build": "^5.4.3", "@loopback/eslint-config": "^8.0.1", "@loopback/http-caching-proxy": "^2.1.7", - "@loopback/mock-oauth2-provider": "^0.1.1", "@loopback/testlab": "^3.1.7", "@types/express": "^4.17.6", "@types/lodash": "^4.14.155", diff --git a/examples/passport-login/src/index.ts b/examples/passport-login/src/index.ts index e7c48335dcf3..29d8fc5a0fcf 100644 --- a/examples/passport-login/src/index.ts +++ b/examples/passport-login/src/index.ts @@ -82,7 +82,7 @@ export async function main() { if (process.env.OAUTH_PROVIDERS_LOCATION) { oauth2Providers = require(process.env.OAUTH_PROVIDERS_LOCATION); } else { - oauth2Providers = require('../oauth2-providers'); + oauth2Providers = require('@loopback/mock-oauth2-provider'); } const server: ExpressServer = await startApplication( oauth2Providers,