Authentication in Faust.js and Headless WP
Вставка
- Опубліковано 17 вер 2024
- Authentication in headless WordPress is an involved process when you have to write the code from scratch. The intricacies involved in integrating these technologies can pose significant challenges. From configuring the authentication flow to handling user sessions and implementing secure endpoints, every step demands meticulous attention to detail.
Luckily, the Faust.js framework has built-in authentication to take care of all your authentication needs.
In this video, we will explore the two strategies Faust.js uses which are redirect and local.
Article Walkthrough:
wpengine.com/b...
Faust.js Plugin
wordpress.org/...
WPGraphQL:
wordpress.org/...
WPGraphQL CORS Plugin:
github.com/fun...
Headless WP Email Settings Plugin:
github.com/kel...
Finished Project:
github.com/Fra...
Video Chapters
Intro
00:00
Setting Up the Project
00:27
Redirect Authentication Strategy
01:35
The Custom useAuth Hook
07:10
Local Authentication Strategy
08:50
Create A Login Page
10:02
Setting Up Managing and Updating Data
12:48
Allowing Users to Update Profiles
14:13
Mutations in WPGraphQL
16:05
Authorization Bonus Feature
18:56
Creating a Sign-Up Form
23:23
Creating a Set-Password Form
28:16
Creating a Forgot Password Page
29:33
A Note on Security
31:00
Outro
31:53
Headless WordPress resources:
developers.wpe...
Thx a lot for this inspiration and overview.
For sure! Anytime!
What questions do you have about Auth in Faust.js? Let us know!
I was able to create the profile form and update the user data without the CORs plugin, is that not needed anymore or have I missed something?