Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Add User Authentication #38

Open
ghost opened this issue Feb 3, 2019 · 2 comments
Open

Add User Authentication #38

ghost opened this issue Feb 3, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Feb 3, 2019

If possible, can you add user authentication as well?
A login page asking users to login to see certain pages

@TylerBarnes
Copy link
Owner

@littlehamster this is something I've been thinking about and I would like to support it. Probably it will be a small number of functions and a form. Most likely it will use json web tokens and this plugin will be required when using the functionality -> https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/.

I like this idea because gatsby could easily be used for woocommerce orders. https://woocommerce.github.io/woocommerce-rest-api-docs/#introduction

@TylerBarnes TylerBarnes added the enhancement New feature or request label Feb 3, 2019
@TylerBarnes
Copy link
Owner

TylerBarnes commented Feb 3, 2019

One more thing, I think for having protected pages they will have to have empty data during the build and pull live rest api data when authenticated. This shouldn't be a problem since wordsby already has an "instant publish" feature that pulls live rest api data during builds (so the front end always has the latest data). That feature will need to be completed before adding this feature since instant publish doesn't currently support menus, options, or archive pages.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant