add authentication

This commit is contained in:
Kurt Hutten
2020-10-13 07:45:53 +11:00
parent 6842450288
commit 5379516128
7 changed files with 179 additions and 8 deletions

View File

@@ -6,9 +6,12 @@ import {
import schemas from 'src/graphql/**/*.{js,ts}'
import services from 'src/services/**/*.{js,ts}'
import { getCurrentUser } from 'src/lib/auth'
import { db } from 'src/lib/db'
export const handler = createGraphQLHandler({
getCurrentUser,
schema: makeMergedSchema({
schemas,
services: makeServices({ services }),