From 3a0d7c4db8405e7050c5de4754f9f74291ceb269 Mon Sep 17 00:00:00 2001 From: Duncan Chen Date: Tue, 27 Apr 2021 22:02:29 -0500 Subject: [PATCH] added email, login, etc. to the jwt --- src/Auth.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Auth.php b/src/Auth.php index d8afa2b..e4153f9 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -155,6 +155,9 @@ protected static function get_signed_token( $user, $cap_check = true ) { 'data' => [ 'user' => [ 'id' => $user->data->ID, + 'displayName' => $user->data->display_name, + 'login' => $user->data->user_login, + 'niceName' => $user->data->user_nicename, ], ], ];