-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
GraphQL: Reset user password with emailed token #7033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for reporting. @Moumouls Do you have any suggestion for this GraphQL related issue? |
Hi @Moumouls and @mtrezza, thank you for looking at this. Here's a recap of the flow (to organize my thoughts)
I think this test case is an example It looks like that REST route has two purposes depending on GET or POST:
|
@MichaelJCole if i understand you try to set up custom account workflow via GraphQL without using the Parse Server pages (resetPassword page, verify email page). Currently the GraphQL API do not support this kind of mutation since many developers use auto managed Parse Server pages. But it looks like a good addition, we have many example into the GraphQL folder under userMutation file. Would you like to start a quick PR ? (with the endpoint suggested into you other issue ? 😃 ) |
Hi @Moumouls, thanks for the invite, I appreciate what you guys have done. My concerns with making a PR are:
I got this to work using the existing API's, so I'll spend some time to make a documentation PR for the GraphQL and REST guides. For reference, here is how to complete the password reset with the REST API from the client:
|
Hi, this is based on my experience attempting to use the Parse GraphQL API with a custom Quasar front-end from this guide. I'm using the "customPages" feature which may be different from other users. Parse seems to be a great back-end data provider, and I'm excited to start building features with it! See also: parse-community/parse-server#7033 and parse-community/parse-server#7028 The REST Guide might benefit from the same documentation. Thank you
New Issue Checklist
Issue Description
Hi, please correct me if I'm misunderstanding, but it looks like the GraphQL API cannot complete a "lost/reset password" UX for the user.
GraphQL API has a resetPassword mutation which sends an email with a link. Implemented here.
That link uses "customPages" to 302 to a FE web app location. My FE is responsible for helping the user complete their request.
Three functions complete this user interaction:
The issue is I don't see how to complete that password reset with the GraphQL API.
I see two changes:
The workaround seems to be to use the REST API to send the users new password and complete the request.
Steps to reproduce
Build a password reset feature using Parse GraphQL API
Actual Outcome
Have web FE use Parse REST API to complete forgotPassword. I think this makes the GraphQL API incomplete.
Expected Outcome
Awesome form!
Environment
Server
4.4
Ubuntu 20.04
localhost
Database
MongoDB
FILL_THIS_OUT
Local
Client
FILL_THIS_OUT
FILL_THIS_OUT
Logs
The text was updated successfully, but these errors were encountered: