Skip to content

Commit

Permalink
Remind to setup auth in server file (redwoodjs#8742)
Browse files Browse the repository at this point in the history
  • Loading branch information
dthyresson authored Jun 26, 2023
1 parent cf4c87b commit 625629b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@ import { getPaths, getConfig } from '@redwoodjs/project-config'
import directives from 'src/directives/**/*.{js,ts}'
import sdls from 'src/graphql/**/*.sdl.{js,ts}'
import services from 'src/services/**/*.{js,ts}'

// Import if using RedwoodJS Realtime and subscriptions
// import subscriptions from 'src/subscriptions/**/*.{js,ts}'

// Import if using RedwoodJS authentication
// import { authDecoder } from '@redwoodjs/<your-auth-provider>'
// import { getCurrentUser } from 'src/lib/auth'
import { logger } from './lib/logger'

// Import if using RedwoodJS Realtime via `yarn rw exp setup-realtime`
// import { pubSub, liveQueryStore } from './lib/realtime'

Expand Down Expand Up @@ -69,6 +74,9 @@ async function serve() {
})

await fastify.register(redwoodFastifyGraphQLServer, {
// If authenticating, be sure to import and add in
// authDecoder,
// getCurrentUser,
loggerConfig: {
logger: logger,
},
Expand Down

0 comments on commit 625629b

Please sign in to comment.