jamstack-hackathon-starter icon indicating copy to clipboard operation
jamstack-hackathon-starter copied to clipboard

Question: Email validation

Open JPrisk opened this issue 6 years ago • 4 comments

Is there is a solution for handling email verification within Gatsby?

Reading the gotrue-js docs leads me to believe that the fragment identifier is slightly different to what you need to post to the backend for verification. Am I missing something?

JPrisk avatar Oct 11 '19 00:10 JPrisk

note sure what you mean. the underlying react-netlify-identity library should handle it on every clientside render: https://github.com/sw-yx/react-netlify-identity/blob/8b083612664f6f0fa2be72cfd0dd5e9894916117/src/runRoutes.tsx#L53;L63

swyxio avatar Oct 11 '19 01:10 swyxio

Nice! Thanks Shawn, I had started to code my own implementation using react+gotrue-js but should have just used the wrapper you've provided.

JPrisk avatar Oct 11 '19 02:10 JPrisk

would you mind if I made a PR on gotrue-js to add your wrapper to the docs?

JPrisk avatar Oct 11 '19 02:10 JPrisk

i thought its already there lol

go for it, tag me in case i miss it

swyxio avatar Oct 11 '19 04:10 swyxio