feature/user-data #11

Merged
bence merged 8 commits from feature/user-data into master 2023-04-09 02:59:36 +02:00
Showing only changes of commit 71aed9dcec - Show all commits

View File

@ -106,7 +106,12 @@ class OAuthLoginController
'exp' => (int)$token->getExpiresDate()->format('U'), 'exp' => (int)$token->getExpiresDate()->format('U'),
'nonce' => $token->getNonce(), 'nonce' => $token->getNonce(),
'sub' => $user->getId(), 'sub' => $user->getId(),
'email' => $user->getEmail() 'email' => $user->getEmail(),
'username' => $user->getUsername(),
'full_name' => $user->getFullName(),
'nickname' => $user->getNickname(),
'phone' => $user->getPhone(),
'id_number' => $user->getIdNumber()
]; ];
$privateKey = file_get_contents(ROOT . '/' . $_ENV['JWT_RSA_PRIVATE_KEY']); $privateKey = file_get_contents(ROOT . '/' . $_ENV['JWT_RSA_PRIVATE_KEY']);
$jwt = JWT::encode($payload, $privateKey, 'RS256'); $jwt = JWT::encode($payload, $privateKey, 'RS256');