re-implemented JWT auth
This commit is contained in:
parent
c190d368de
commit
b47b0f3752
18 changed files with 390 additions and 174 deletions
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue