Skip to content

Commit

Permalink
fixup! fix security handling of multiple auth types for hapi/koa
Browse files Browse the repository at this point in the history
  • Loading branch information
fantapop committed Jun 15, 2021
1 parent 0a5e35b commit ba13a5b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/routeGeneration/templates/express.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { {{name}} } from '{{modulePath}}';
{{#if authenticationModule}}
import { expressAuthentication } from '{{authenticationModule}}';
// @ts-ignore - no great way to install types from subpackage
import * as promiseAny from 'promise.any';
const promiseAny = require('promise.any');
{{/if}}
{{#if iocModule}}
import { iocContainer } from '{{iocModule}}';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/routeGeneration/templates/hapi.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { {{name}} } from '{{modulePath}}';
{{#if authenticationModule}}
import { hapiAuthentication } from '{{authenticationModule}}';
// @ts-ignore - no great way to install types from subpackage
import * as promiseAny from 'promise.any';
const promiseAny = require('promise.any');
{{/if}}
{{#if iocModule}}
import { iocContainer } from '{{iocModule}}';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/routeGeneration/templates/koa.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { {{name}} } from '{{modulePath}}';
{{#if authenticationModule}}
import { koaAuthentication } from '{{authenticationModule}}';
// @ts-ignore - no great way to install types from subpackage
import * as promiseAny from 'promise.any';
const promiseAny = require('promise.any');
{{/if}}
{{#if iocModule}}
import { iocContainer } from '{{iocModule}}';
Expand Down

0 comments on commit ba13a5b

Please sign in to comment.