Skip to content

Instantly share code, notes, and snippets.

View timlg07's full-sized avatar

Tim Greller timlg07

View GitHub Profile
@timlg07
timlg07 / token-login.php
Last active June 18, 2023 11:49 — forked from kidino/token-login.php
Login to WordPress web with JWT
<?php
/*
JWT TOKEN LOGIN -- Automatically logs a user in a WordPress site with JWT
This script allows you to log a user into a WordPress site automatically
based on his/her JSON Web Token (JWT). This assumes that you use the
following plugin and set it up properly on your WordPress site to enable
JWT authentication via REST API.
JWT Auth – WordPress JSON Web Token Authentication