re-implemented JWT auth

This commit is contained in:
lnn0q 2025-04-18 14:47:42 +03:00
parent c190d368de
commit b47b0f3752
18 changed files with 390 additions and 174 deletions

View file

@ -6,7 +6,7 @@ import bcrypt from 'bcrypt';
export async function SignUpResolver(
_: any,
{ input }: MutationSignUpArgs,
{ identity }: IdentityContext
{ req, res, identity }: IdentityContext
): Promise<void> {
const existingUsername = await prisma.user.findUnique({
where: { username: input.username },