Hi I’m developing user authentication by using bcrypt and jwt to try. Signing up is no problem, it returns the user and the jwt token.
Now I’m trying to implement login mutation, which I based literally on your graphql-auth example . But when I try to login, it seems like the user object bcrypt uses to compare the supplied password argument doesn’t contain a password. Thus it is undefined and then throws an error. Why is there no password in my user object that gets passed along in this login function?
In my datamodel.prisma I have defined a String! field for password, also in schema.graphql but when querying the User object the password is not passed along apparently and I really don’t understand why.