@envelop/generic-auth
Advanced tools
Comparing version 1.1.0-alpha-d7e3951.0 to 1.1.0-alpha-e8998c9.0
@@ -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
17017