-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
GraphQL: verifyEmail with emailed token #7028
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
verifyEmail
verifyEmail
Ok, I think it's just not documented. The GraphQL Guide might be improved with this documentation - what do you think? This needed my attention because I need to configure my nginx reverse proxy to proxy the When the email verification link is clicked in the user's email client, it (probably) opens a browser to GET a Parse REST API endpoint which verifies the emailed link:
On success or failure, the REST API 302 forwards the browser to locations specified when starting the server:
These are URL's to pages in your front-end application. Your application must complete the user's interactions. |
Thanks for reporting. If you think the documentation can be improved, please let us know where you would expect to see which information by opening an issue in the docs repo. If you want to go even further, we would gladly review your PR for the docs change. I'm closing this as it does not seem to be a Parse Server issue. Feel free to comment if you have any questions and we can re-open this issue. |
Hi @mtrezza, thanks for the reply and invite. I haven't get gotten email verifications to work in my app. I have been digging through the code to get this far. I think the missing GraphQL mutation makes the GraphQL API incomplete. I'd rather handle this interaction in the router of my front-end web app. Since that's not available (and I'm still evaluating Parse), I'm happy to use the REST endpoint, but it's not working. I configured Parse to send the email (see below). It sent the email. I clicked the link:
Parse responds:
www.danger.team` has A records to 127.0.0.1, where nginx reverse proxies to localhost:1337. That URL also gives the same response:
I don't see anything in the Parse logs. Here's the server config I pulled from the documentation:
|
@Moumouls Can I get your opinion on whether this could be a Parse Server GraphQL issue? Or does this seem like specific to the custom architecture? |
Hi, guys, thanks for looking. About the REST verification url, I posted a question in the forum.
Do you have an example email verification link? Maybe the link is malformed? If this was available as a GraphQL mutation, it would be done already :-) |
Here we have two things:
@MichaelJCole i think the feature pretty simple to implement, would you to give a try to send a PR to support verifyEmail via GraphQL API ? 😄 There are some example of similar implementations into the GraphQL folder (user mutation). 😉 |
@Moumouls thank you! re: docs and feature, I may come back to this after I get Parse to work for my application. I haven't put any data in it yet. I'm still at logins. re: the URL, it was malformed. This won't work:
This is worked:
|
Thanks @Moumouls as always for the fast response. Btw, labels in this repo are applied according to a new labelling system that is still under experimentation. You may want to take a look at the rules how these labels are applied and let me know if you have any questions. |
@MichaelJCole As I mentioned earlier regarding the documentation: it would be great if you could help to improve the documentation, since you are taking a fresh look at it and may easily see what can be improved to make on-boarding easier for first-time-users of Parse Server. You can do so by opening an issue in the docs repo and we would gladly review your PR for the docs change. |
related: #7033 |
verifyEmail
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
This REST endpoint to handle email verification links doesn't seem to have a matching GraphQL mutation
Steps to reproduce
Read the docs, spend a few days getting logins to work using GraphQL.
Actual Outcome
Complete the job with a REST endpoint :-)
Expected Outcome
A complete GraphQL API for managing users, w/o the need for the /parse REST API. Maybe there's a reason for this I don't understand.
Environment
"resolutions": {
"graphql": "^14.7.0"
},
"dependencies": {
"dotenv": "^8.2.0",
"express": "^4.17.1",
"graphql": "^14.7.0",
"graphql-tag": "^2.11.0",
"nodemon": "^2.0.6",
"parse-server": "^4.4.0",
"parse-server-aws-ses": "^1.0.0"
}
The text was updated successfully, but these errors were encountered: