API Usage refreshes
This commit is contained in:
@@ -26,7 +26,10 @@ class Auth implements IMiddleware
|
||||
}
|
||||
|
||||
try {
|
||||
User::getByToken($token);
|
||||
$user = User::getByToken($token);
|
||||
|
||||
// Keep fresh
|
||||
$user->keepFresh();
|
||||
} catch (Exception $err) {
|
||||
// No user with this token exists
|
||||
Response::response()
|
||||
|
||||
Reference in New Issue
Block a user