diff --git a/src/callback.php b/src/callback.php index 74aa87c..70375d2 100644 --- a/src/callback.php +++ b/src/callback.php @@ -22,7 +22,7 @@ // Save user data and token in session or database here - $_SESSION['user'] = $userData["name"]; + $_SESSION['user'] = $userData["preferred_username"]; $_SESSION['token'] = $token->getToken(); // Redirect to index.php