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.2.1 to 4.3.0

lib/providers/laravel.passport.js

15

CHANGELOG.md

@@ -5,2 +5,17 @@ # Change Log

<a name="4.3.0"></a>
# [4.3.0](https://github.com/nuxt-community/auth-module/compare/v4.2.1...v4.3.0) (2018-04-28)
### Bug Fixes
* github provider ([#159](https://github.com/nuxt-community/auth-module/issues/159)) ([8b1819f](https://github.com/nuxt-community/auth-module/commit/8b1819f))
### Features
* laravel passport provider ([#157](https://github.com/nuxt-community/auth-module/issues/157)) ([9b09459](https://github.com/nuxt-community/auth-module/commit/9b09459))
<a name="4.2.1"></a>

@@ -7,0 +22,0 @@ ## [4.2.1](https://github.com/nuxt-community/auth-module/compare/v4.2.0...v4.2.1) (2018-04-27)

6

lib/core/auth.js

@@ -30,5 +30,5 @@ import getProp from 'dotprop'

if (!routeOption(this.ctx.route, 'auth', false)) {
//disable redirect on refresh / direct load of a page.
if(loggedIn && !this.ctx.from) {
return
// Disable redirect on refresh / direct load of a page.
if (loggedIn && !this.ctx.from) {
return
}

@@ -35,0 +35,0 @@

@@ -7,3 +7,3 @@ export const isUnset = o => typeof o === 'undefined' || o === null

export const isRelativeURL = u =>
u && u.length && /^\/[a-zA-Z0-9@\-%_~][/a-zA-Z0-9@\-%_~]*[\?]?([^\#]*)#?([^\#]*)$/.test(u)
u && u.length && /^\/[a-zA-Z0-9@\-%_~][/a-zA-Z0-9@\-%_~]*[?]?([^#]*)#?([^#]*)$/.test(u)

@@ -10,0 +10,0 @@ export const parseQuery = queryString => {

@@ -24,4 +24,4 @@ const axios = require('axios')

// Json parser
const jsonMiddleware = bodyParser.json()
// Form data parser
const formMiddleware = bodyParser.urlencoded()

@@ -36,3 +36,3 @@ // Register endpoint

jsonMiddleware(req, res, () => {
formMiddleware(req, res, () => {
const { code } = req.body

@@ -39,0 +39,0 @@

@@ -102,2 +102,3 @@ import { encodeQuery, parseQuery, randomString } from '../utilities'

url: this.options.access_token_endpoint,
baseURL: false,
data: encodeQuery({

@@ -104,0 +105,0 @@ code: parsedQuery.code,

{
"name": "@nuxtjs/auth",
"version": "4.2.1",
"version": "4.3.0",
"description": "Authentication module for Nuxt.js",

@@ -46,7 +46,7 @@ "license": "MIT",

"boom": "^7.2.0",
"consola": "^1.2.0",
"consola": "^1.3.0",
"cookie": "^0.3.1",
"dotprop": "^1.0.2",
"js-cookie": "^2.2.0",
"lodash": "^4.17.4"
"lodash": "^4.17.10"
},

@@ -59,3 +59,3 @@ "devDependencies": {

"bootstrap-vue": "^2.0.0-rc.4",
"codecov": "latest",
"codecov": "^3.0.1",
"cookie-parser": "^1.4.3",

@@ -68,3 +68,3 @@ "eslint": "^4.19.1",

"eslint-plugin-promise": "^3.7.0",
"eslint-plugin-standard": "latest",
"eslint-plugin-standard": "^3.1.0",
"eslint-plugin-vue": "^4.4.0",

@@ -71,0 +71,0 @@ "express": "^4.16.3",

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