How to fetch draft posts without JWT #2559
Unanswered
ShahriarKh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to create preview functionality using Headless WP + Next.js, and noticed that draft posts are only returned if the request is authenticated. I found out that currently, the only way to make authenticated requests is using jwt plugin. However, asking editors to log in every time they want to preview a post is a bit odd.
Is it possible to have some kind of static token, like an API Key? does the JWT change every time?
(I'm really confused about how this auth thing works)
Beta Was this translation helpful? Give feedback.
All reactions