You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your enhancement related to a problem? Please describe.
A HeadstartWP-based project I'm working on requires a way to authenticate WordPress users within the Next.js app. While an additional third-party plugin such as JWT Authentication for WP REST API can be added for this purpose, the Headstart WP plugin already has a class for generating JWT tokens, so I propose adding an authentication REST endpoint within the plugin.
The endpoint would need to support different expiration times for the token (configurable perhaps via a filter), and the data returned from the REST endpoint should be filterable to provide any other user-specific data needed in the Next.js application such as roles, etc.
For the Next.js side of things, it may be sufficient for this repo to provide documentation for the integration.
Designs
No response
Describe alternatives you've considered
It's also an option to use a third-party plugin to provide an authentication endpoint.
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Is your enhancement related to a problem? Please describe.
A HeadstartWP-based project I'm working on requires a way to authenticate WordPress users within the Next.js app. While an additional third-party plugin such as JWT Authentication for WP REST API can be added for this purpose, the Headstart WP plugin already has a class for generating JWT tokens, so I propose adding an authentication REST endpoint within the plugin.
The endpoint would need to support different expiration times for the token (configurable perhaps via a filter), and the data returned from the REST endpoint should be filterable to provide any other user-specific data needed in the Next.js application such as roles, etc.
For the Next.js side of things, it may be sufficient for this repo to provide documentation for the integration.
Designs
No response
Describe alternatives you've considered
It's also an option to use a third-party plugin to provide an authentication endpoint.
Code of Conduct
The text was updated successfully, but these errors were encountered: