DEV Community

Discussion on: GraphQL Auth with Passport and Lighthouse PHP

Collapse
 
lemosluan profile image
Luan Lemos Almeida

This code above doesn't work for me.
I change "data:" to "input:" and works...
If someone have the same problem, just replace "data:" to "input:" and it will working fine.

Thanks for this package, @joselfonseca . ;)

mutation {
login(data: {
username: "myemail@email.com",
password: "123456789qq"
}) {
access_token
refresh_token
expires_in
token_type
user {
id
email
name
created_at
updated_at
}
}
}

Collapse
 
joselfonseca profile image
Jose Luis Fonseca

Hello, I just released version 2.0 which uses input instead of data, thanks for pointing this out in the post, i have updated it.

github.com/joselfonseca/lighthouse...

i've also added registration routes