Faust Auth Example
- Clone this repo
- Copy
.env.local.sample
and name the new copy.env.local
- In that new copy, update the
NEXT_PUBLIC_WORDPRESS_URL
andFAUST_SECRET_KEY
variables with the respective values from your own WP install (make sure that WP install has the Faust plugin installed and activated). - Uncomment the
FAUST_SECRET_KEY
line in the.env.local
- Run
npm install
,npm run generate
, andnpm run dev
in that order. - Visit
http://localhost:3000/example
(or whatever port your local app is running on). Click the "Login" button and if necessary, login to WordPress. You should then find yourself back on/example
but instead of a "Login" link, you should see your username and any blog posts associated with that user.