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

graphql-auth

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-auth - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

6

index.js

@@ -33,3 +33,2 @@ export class ContextError extends Error {

const next = callback ? callback : scope;
let requiredScope = callback ? scope : null;

@@ -41,6 +40,9 @@ return async function(_, __, context, info) {

if (requiredScope && typeof requiredScope === 'function')
let requiredScope = callback ? scope : null;
if (requiredScope && typeof requiredScope === 'function') {
requiredScope = await Promise.resolve().then(() =>
requiredScope(_, __, context, info),
);
}

@@ -47,0 +49,0 @@ if (

{
"name": "graphql-auth",
"version": "0.2.0",
"version": "0.2.1",
"description": "GraphQL authentication and authorization middleware",

@@ -5,0 +5,0 @@ "main": "build/index.js",

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