# \#gatsbyjs

**URL:** https://community.auth0.com/tag/gatsbyjs/1317.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [How to control MFA with Gatsby.js and auth0-react?](https://community.auth0.com/t/how-to-control-mfa-with-gatsby-js-and-auth0-react/64899)

<div class="topic-metadata">

**Author:** [@NeilShang](https://community.auth0.com/u/NeilShang)\
**Replies:** 2\
**Last updated:** [June 29, 2021, 9:38am UTC](https://community.auth0.com/t/how-to-control-mfa-with-gatsby-js-and-auth0-react/64899 "2021-06-29T09:38:10Z")

</div>

1.I refer to this document to protect routes 2.I enable MFA with always 3. I refresh the protected page after login ,I saw this request everytime. 4. And I will be redirect to MFA page when I refresh page after …

---

## [On the Gatsby project, .on event is not getting fired on production site](https://community.auth0.com/t/on-the-gatsby-project-on-event-is-not-getting-fired-on-production-site/45507)

<div class="topic-metadata">

**Author:** [@dynosapp](https://community.auth0.com/u/dynosapp)\
**Replies:** 0\
**Last updated:** [June 30, 2020, 5:50am UTC](https://community.auth0.com/t/on-the-gatsby-project-on-event-is-not-getting-fired-on-production-site/45507 "2020-06-30T05:50:19Z")

</div>

Hello, I am trying to get Auth0-Lock working on our Gatsby site. It works great on the local. However, after publishing the site, it is not redirecting. Essentially, what we found was it is not firing the lock.on('auth…
