Store creation date

This commit is contained in:
Michael 2021-05-11 08:16:40 +00:00
parent 0f4920dca8
commit cfb9b73205
2 changed files with 4 additions and 2 deletions

View file

@ -61,6 +61,7 @@ class Token extends BaseApi
DI::mstdnError()->RecordNotFound();
}
System::jsonExit(['access_token' => $token['access_token'], 'token_type' => 'Bearer', 'scope' => $application['scopes']]);
// @todo Use entity class
System::jsonExit(['access_token' => $token['access_token'], 'token_type' => 'Bearer', 'scope' => $application['scopes'], 'created_at' => $token['created_at']]);
}
}