feat: add OAuth2 authentication (Google/GitHub/Discord)

This commit is contained in:
Divlo
2022-03-06 15:41:30 +00:00
parent 9e6bf25c83
commit 91a0e2a76f
16 changed files with 556 additions and 17 deletions

View File

@ -56,7 +56,7 @@ export const postRefreshTokenUser: FastifyPluginAsync = async (fastify) => {
) as UserJWT
const accessToken = generateAccessToken({
id: userJWT.id,
currentStrategy: 'local'
currentStrategy: userJWT.currentStrategy
})
reply.statusCode = 200
return {