( fastify, _options, done )
| 30 | * @param done - The callback function. |
| 31 | */ |
| 32 | export const devAuth: FastifyPluginCallbackTypebox = ( |
| 33 | fastify, |
| 34 | _options, |
| 35 | done |
| 36 | ) => { |
| 37 | fastify.get('/signin', async (req, reply) => { |
| 38 | const email = 'foo@bar.com'; |
| 39 | |
| 40 | const { id } = await findOrCreateUser(fastify, email); |
| 41 | |
| 42 | reply.setAccessTokenCookie(createAccessToken(id)); |
| 43 | |
| 44 | await handleRedirects(req, reply); |
| 45 | }); |
| 46 | |
| 47 | done(); |
| 48 | }; |
nothing calls this directly
no test coverage detected