prod deploy next fix
This commit is contained in:
parent
94d5dbe04a
commit
0790f5bc77
@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable react-hooks/rules-of-hooks */
|
/* eslint-disable react-hooks/rules-of-hooks */
|
||||||
import { useGenericAuth } from '@envelop/generic-auth'
|
import { useGenericAuth, UnauthenticatedError } from '@envelop/generic-auth'
|
||||||
import { MeshPlugin } from '@graphql-mesh/types'
|
import { MeshPlugin } from '@graphql-mesh/types'
|
||||||
|
|
||||||
type UserType = {
|
type UserType = {
|
||||||
@ -18,7 +18,7 @@ const resolveUserFn = async (context: any) => {
|
|||||||
|
|
||||||
const validateUser = (params: any) => {
|
const validateUser = (params: any) => {
|
||||||
if (!params.user) {
|
if (!params.user) {
|
||||||
return new Error(`Unauthenticated!`)
|
return new UnauthenticatedError(`Unauthenticated!`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user