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

@envelop/generic-auth

Package Overview
Dependencies
Maintainers
1
Versions
1325
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envelop/generic-auth - npm Package Compare versions

Comparing version 1.1.0-alpha-d7e3951.0 to 1.1.0-alpha-e8998c9.0

2

index.js

@@ -58,3 +58,3 @@ 'use strict';

[fieldName]: user,
validateUser: () => validateUser(user, context),
validateUser,
});

@@ -61,0 +61,0 @@ },

{
"name": "@envelop/generic-auth",
"version": "1.1.0-alpha-d7e3951.0",
"version": "1.1.0-alpha-e8998c9.0",
"sideEffects": false,

@@ -5,0 +5,0 @@ "peerDependencies": {

@@ -81,3 +81,3 @@ ## `@envelop/generic-auth`

import { envelop } from '@envelop/core';
import { useGenericAuth, resolveUser, ValidateUserFn } from '@envelop/generic-auth';
import { useGenericAuth, ResolveUserFn, ValidateUserFn } from '@envelop/generic-auth';

@@ -98,3 +98,3 @@ type UserType = {

useGenericAuth({
resolveUser,
resolveUserFn,
validateUser,

@@ -113,3 +113,3 @@ mode: 'protect-all',

import { envelop } from '@envelop/core';
import { useGenericAuth, resolveUser, ValidateUserFn } from '@envelop/generic-auth';
import { useGenericAuth, ResolveUserFn, ValidateUserFn } from '@envelop/generic-auth';

@@ -130,3 +130,3 @@ type UserType = {

useGenericAuth({
resolveUser,
resolveUserFn,
validateUser,

@@ -160,3 +160,3 @@ mode: 'resolve-only',

import { envelop } from '@envelop/core';
import { useGenericAuth, resolveUser, ValidateUserFn } from '@envelop/generic-auth';
import { useGenericAuth, ResolveUserFn, ValidateUserFn } from '@envelop/generic-auth';

@@ -177,3 +177,3 @@ type UserType = {

useGenericAuth({
resolveUser,
resolveUserFn,
validateUser,

@@ -243,3 +243,3 @@ mode: 'protect-auth-directive',

const valueNode = authDirectiveNode.arguments.find(arg => arg.name.value === 'role').value as EnumValueNode;
const valueNode = directiveNode.arguments.find(arg => arg.name.value === 'role').value as EnumValueNode;
const role = valueNode.value;

@@ -246,0 +246,0 @@

Sorry, the diff of this file is not supported yet

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