Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nuxtjs/auth

Package Overview
Dependencies
Maintainers
5
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/auth - npm Package Compare versions

Comparing version 4.6.2 to 4.6.3

14

CHANGELOG.md

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

9

lib/module/index.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc