@nuxtjs/auth
Advanced tools
Comparing version 4.6.2 to 4.6.3
@@ -5,6 +5,20 @@ # Changelog | ||
### [4.6.3](https://github.com/nuxt-community/auth-module/compare/v4.6.1...v4.6.3) (2019-05-31) | ||
### Bug Fixes | ||
* **module:** warn if default strategy is not valid ([#365](https://github.com/nuxt-community/auth-module/issues/365)) ([db6d3d4](https://github.com/nuxt-community/auth-module/commit/db6d3d4)) | ||
### [4.6.2](https://github.com/nuxt-community/auth-module/compare/v4.6.1...v4.6.2) (2019-05-31) | ||
### Bug Fixes | ||
* **module:** warn if default strategy is not valid ([#365](https://github.com/nuxt-community/auth-module/issues/365)) ([db6d3d4](https://github.com/nuxt-community/auth-module/commit/db6d3d4)) | ||
### [4.6.1](https://github.com/nuxt-community/auth-module/compare/v4.6.0...v4.6.1) (2019-05-31) | ||
@@ -11,0 +25,0 @@ |
@@ -27,6 +27,9 @@ const { resolve, join, basename } = require('path') | ||
// Set defaultStrategy | ||
if (!options.defaultStrategy && strategies.length) { | ||
options.defaultStrategy = strategies[0]._name | ||
} else { | ||
const strategyNames = strategies.map(x => x._name) | ||
options.defaultStrategy = options.defaultStrategy || strategyNames[0] | ||
if (!options.defaultStrategy) { | ||
logger.warn('no strategy defined!') | ||
} else if(strategyNames.indexOf(options.defaultStrategy) === -1) { | ||
logger.warn(`strategy ${options.defaultStrategy} is not defined!`) | ||
} | ||
@@ -33,0 +36,0 @@ |
{ | ||
"name": "@nuxtjs/auth", | ||
"version": "4.6.2", | ||
"version": "4.6.3", | ||
"description": "Authentication module for Nuxt.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64744
1242