Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add authentication endpoint #599

Open
1 task done
johnwatkins0 opened this issue Sep 7, 2023 · 1 comment
Open
1 task done

Add authentication endpoint #599

johnwatkins0 opened this issue Sep 7, 2023 · 1 comment

Comments

@johnwatkins0
Copy link
Member

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
@Tanu1201
Copy link

can I take this up>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants