AxeWP / wp-graphql-headless-login

A WordPress plugin that provides Headless login and authentication for WPGraphQL, supporting traditional passwords, OAuth2/OpenID Connect, JWT, and more.
GNU General Public License v3.0
72 stars 11 forks source link

Add support for setting WP login cookies #13

Closed justlevine closed 1 year ago

justlevine commented 1 year ago

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

justlevine commented 1 year ago

Closed by #28