mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix deployment artifact token lookup
This commit is contained in:
@@ -1185,7 +1185,7 @@ return function (Container $context): void {
|
||||
}, ['request', 'project', 'team', 'user']);
|
||||
|
||||
$context->set('resourceToken', function ($project, $dbForProject, $request, Authorization $authorization) {
|
||||
$tokenJWT = $request->getParam('token');
|
||||
$tokenJWT = $request->getQuery('token');
|
||||
|
||||
if (! empty($tokenJWT) && ! $project->isEmpty()) { // JWT authentication
|
||||
// Use a large but reasonable maxAge to avoid auto-exp when token has no expiry
|
||||
|
||||
Reference in New Issue
Block a user