@aoberoi/passport-slack
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -53,5 +53,5 @@ 'use strict'; | ||
var team = { | ||
id: params.team_id | ||
id: params.team_id || params.team && params.team.id | ||
}; | ||
if (params.team_name) team.name = params.team_name; | ||
if (params.team_name) team.name = params.team_name || params.team && params.team.name; | ||
var scopes = new Set(params.scope.split(',')); | ||
@@ -58,0 +58,0 @@ var extra = {}; |
{ | ||
"name": "@aoberoi/passport-slack", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Slack authentication strategy for Passport", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -22,5 +22,5 @@ import 'babel-polyfill'; | ||
const team = { | ||
id: params.team_id, | ||
id: params.team_id || (params.team && params.team.id), | ||
}; | ||
if (params.team_name) team.name = params.team_name; | ||
if (params.team_name) team.name = params.team_name || (params.team && params.team.name); | ||
const scopes = new Set(params.scope.split(',')); | ||
@@ -27,0 +27,0 @@ const extra = {}; |
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
32933
659