WP Manifestindependent plugin directory
manifest / integrations / ll-gql-jwt

MJJ Long Lived GraphQL JWT

Extend JWT for WPGraphQL for dummy user for use in services which require reading raw content from posts.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/tharsheblows/ll-gql-jwt/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Creates a dummy editor user in WordPress with long lived JWT for use with WPGraphQL.

Description

If you generate a token via the WPGraphQL JWT auth plugin for the user created in this plugin, it will extend its lifetime to a year and let you know how long you have left on it. (See Settings->Dummy GraphQL user settings in wp-admin.)

When using the token, access to functionality should be handled via the user's role, ie via authorization not authentication as it's not possible to revoke the token. This is a dummy user and should not be used for anything else. Do not use this for a real user who needs to manage their own access.

Please read the WPGraphQL JWT auth plugin documentation on how to generate the token. As it's only an annual event, I'm using Postman to get it.

Using this token allows WPGraphQL to read a WordPress post's raw content (the edit_posts capability is required for this) and was built because I wanted something I could use with Netlify but manage in WordPress.