AxeWP/wp-graphql-headless-login

Add support for setting WP login cookies

justlevine opened this issue · 1 comments

What problem does this address?

Currently, users need to authenticate separately on WP and the frontend. This makes admin preview flows more annoying, as well as complicates the current recommended wp-graphql-woocommerce checkout approach which suggests using the server checkout over manually registering GraphQL support for payment gateways.

What is your proposed solution?

Add the ability to generate WP Login cookies when authenticating, with a corresponding toggle in the plugin settings.

What alternatives have you considered?

No response

Additional Context

https://mikejolley.com/2021/03/02/headless-wordpress-cookie-based-login-using-graphql/

https://developers.wpengine.com/blog/headless-wordpress-authentication-native-cookies

Closed by #28