Update v1.1 api

This commit is contained in:
Daniel Supernault 2022-09-25 08:11:44 -06:00
parent 12f9539054
commit 6b2f6b3c22
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -392,11 +392,11 @@ class ApiV1Dot1Controller extends Controller
return [
'id' => $key + 1,
'did' => encrypt($token->id),
'name' => $token->name,
'name' => $token->client->name,
'scopes' => $token->scopes,
'revoked' => $token->revoked,
'created_at' => $token->created_at,
'expires_at' => $token->expires_at
'created_at' => str_replace('@', 'at', now()->parse($token->created_at)->format('M j, Y @ g:i:s A')),
'expires_at' => str_replace('@', 'at', now()->parse($token->expires_at)->format('M j, Y @ g:i:s A'))
];
});