The same schema as normal login can be used for register.login.
register(...) {
success
errors
login {
token
user {
id
username
firstName
...
}
}
}
Changes:
Execute the Login mutation from within the register mutation
I used this hack which uses the field for Login mutation inside the register mutation. The djagno-graphql-jwt library does not have a utility for doing this directly (they only allow doing it directly with a wrapper on the mutate function). I've created an issue on their github but I think this should work.
Fixes #91
The same schema as normal login can be used for
register.login
.Changes:
I used this hack which uses the field for Login mutation inside the register mutation. The djagno-graphql-jwt library does not have a utility for doing this directly (they only allow doing it directly with a wrapper on the
mutate
function). I've created an issue on their github but I think this should work.