send all user data with oauth
This commit is contained in:
parent
0ffe088660
commit
79509135b7
@ -106,7 +106,12 @@ class OAuthLoginController
|
||||
'exp' => (int)$token->getExpiresDate()->format('U'),
|
||||
'nonce' => $token->getNonce(),
|
||||
'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']);
|
||||
$jwt = JWT::encode($payload, $privateKey, 'RS256');
|
||||
|
Loading…
Reference in New Issue
Block a user