Skip to content
Snippets Groups Projects
Verified Commit a715f882 authored by Damien's avatar Damien
Browse files

FEAT #10954 TIME 0:05 Json decode

parent bd3f6658
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,7 @@ $app->add(function (\Slim\Http\Request $request, \Slim\Http\Response $response,
//Authentication
$app->get('/authenticationInformations', \SrcCore\controllers\AuthenticationController::class . ':getInformations');
$app->post('/authenticate', \SrcCore\controllers\AuthenticationController::class . ':authenticate');
$app->get('/authenticate/token', \SrcCore\controllers\AuthenticationController::class . ':getRefreshedToken');
//Attachments
$app->get('/attachments/{id}', \Attachment\controllers\AttachmentController::class . ':getById');
......
......@@ -122,7 +122,7 @@ class AuthenticationController
$GLOBALS['id'] = $user['id'];
$user['refresh_token'] = json_decode($user['refresh_token']);
$user['refresh_token'] = json_decode($user['refresh_token'], true);
foreach ($user['refresh_token'] as $key => $refreshToken) {
try {
JWT::decode($refreshToken, CoreConfigModel::getEncryptKey(), ['HS256']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment