Skip to content

hussain-t/react-wp-graphql-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

React WPGraphQL JWT Authentication with Apollo Client

Screenshots

Login validation 1 Login validation 2 Profile page

Prerequisites

Install and active the following plugins in your WordPress backend:

  1. WPGraphQL
  2. WPGraphQL JWT Authentication

Note: Follow the instructions given by WPGraphQL author to avoid exceptional behaviors.

This project was bootstrapped with Create React App.

Run the project

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Change WordPress URL

Go to app.json file and change the siteUrl value to yours.

Covered features:

๐Ÿ‘‰ Client side form validations
๐Ÿ‘‰ Server side form validations
๐Ÿ‘‰ WordPress Authentication (login) with WPGraphQL
๐Ÿ‘‰ Apollo GraphQL Client for handling GraphQL mutation
๐Ÿ‘‰ Protected route with React Router

About

A React and WPGraphQL Authentication project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published