prod deploy next fix

This commit is contained in:
Samuel Andert 2023-08-22 11:10:00 +02:00
parent 94d5dbe04a
commit 0790f5bc77

View File

@ -1,5 +1,5 @@
/* 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'
type UserType = {
@ -18,7 +18,7 @@ const resolveUserFn = async (context: any) => {
const validateUser = (params: any) => {
if (!params.user) {
return new Error(`Unauthenticated!`)
return new UnauthenticatedError(`Unauthenticated!`)
}
}