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
{{ message }}
Repository navigation
example: Fetch client example showing auth for app router #45
This covers per-user login (visitors sign in via Headless Login or JWT). For site-level credentials, where the server talks to WordPress as a single service account with an Application Password, see example: Apollo Client with Application Passwords (server-side) #44. Each README should point to the other.
The existing examples/next/apollo-authentication covers per-user login for the Pages Router with Apollo; this is the App Router + fetch counterpart.
changed the title [-]example: Apollo client example showing auth for app router[/-][+]example: Fetch client example showing auth for app router[/+]on Apr 17, 2025
Activity
josephfusco commentedon Apr 15, 2025
Is this still needed right now as we have https://github.com/wpengine/hwptoolkit/tree/main/examples/next/client-app-router-fetch-data? AFAIK Apollo app router is still experimental.
[-]example: Apollo client example showing auth for app router[/-][+]example: Fetch client example showing auth for app router[/+]moonmeister commentedon Apr 17, 2025
@josephfusco I think it was mislabeled. I changed it to the Fetch API since that is what's still needed; another ticket doesn't seem to exist for it.