Hi, I am new to Gatsby. I want to add authentication in the Gatbsy using PassportJS for Google and Facebook authentication. I had found examples on React JS with Passport JS running on Express but not sure how to implement it on Gatsby especially on bind the Passport component into Gatsby route.
I tried to search the web for examples on how to add authentication using PassportJS in Gatsby but to no avail.
Please help to provide examples or tutorial on how to add PassportJS authentication into Gatsby. Thank you.
Take a look at https://www.gatsbyjs.org/tutorial/authentication-tutorial/
It explains how to use Passport (or other authentication libraries) to check on route change.
Marking this as answered and closing. Thanks!
@sidharthachatterjee: that page is far from the kind of tutorial that would help the OP.
The fact that there's no passport theme or plugin, suggests the integration is far from trivial.
Please open a new issue following our documentation template. Thanks!
@LekoArts: thanks for the suggestion. I've filed #23737.