Adds authentication

This commit is contained in:
Rob Cameron
2020-10-07 14:45:51 -07:00
parent 35456b0a4d
commit 2941c967ad
8 changed files with 189 additions and 9 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 }),