Skip to content

Commit

Permalink
fix(auth): change lazy import for admin to make it work with scully
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Jan 6, 2020
1 parent 9c2254c commit 6f87d5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/webapp/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ import { AppComponent } from './app.component';
{
path: 'admin',
canActivate: [AuthGuard],
loadChildren: () => import('@yeti/admin').then(module => module.AdminModule),
loadChildren: () =>
// import('@yeti/admin').then(module => module.AdminModule),
import('../../../../libs/admin/src/lib/admin.module').then(module => module.AdminModule),
data: { preload: false }
},
{
Expand Down
1 change: 1 addition & 0 deletions libs/core/src/lib/core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export function noop() {
NbGenericOAuth2Strategy.setup({
// Firebase https://login.microsoftonline.com/fabrikamb2c.onmicrosoft.com/v2.0/.well-known/openid-configuration
// https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/
// https://www.scottbrady91.com/OpenID-Connect/Implementing-Sign-In-with-Apple-in-ASPNET-Core
name: 'github',
clientId: environment.auth.generic.clientId,
clientSecret: environment.auth.generic.clientSecret,
Expand Down

0 comments on commit 6f87d5b

Please sign in to comment.