mirror of
https://github.com/appwrite/appwrite
synced 2026-05-05 22:38:37 +00:00
api keys, validation and test
This commit is contained in:
parent
d39e6a842c
commit
1a28c3a909
1 changed files with 1 additions and 1 deletions
|
|
@ -282,7 +282,7 @@ App::init(function (App $utopia, Request $request, Response $response, Document
|
|||
$expire = $key->getAttribute('expire', 0);
|
||||
|
||||
if($expire !== 0 && $expire < \time()){
|
||||
throw new AppwriteException('Project key expired', 401, Exception:: PROJECT_KEY_EXPIRED);
|
||||
throw new AppwriteException('Project key expired', 401, AppwriteException:: PROJECT_KEY_EXPIRED);
|
||||
}
|
||||
|
||||
Authorization::setRole('role:'.Auth::USER_ROLE_APP);
|
||||
|
|
|
|||
Loading…
Reference in a new issue