Update src/Appwrite/Platform/Modules/Functions/Http/Executions/Create.php

Co-authored-by: Matej Bačo <matejbacocom@gmail.com>
This commit is contained in:
Damodar Lohani 2025-09-14 10:44:46 +05:45 committed by GitHub
parent 365aaca56d
commit 32b290a231
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -205,7 +205,7 @@ class Create extends Base
foreach ($sessions as $session) {
/** @var Utopia\Database\Document $session */
if ($proofForToken->verify($store->getProperty('secret', ''), $session->getAttribute('secret'))) { // If current session delete the cookies too
if ($proofForToken->verify($store->getProperty('secret', ''), $session->getAttribute('secret'))) { // Find most recent active session for user ID and JWT headers
$current = $session;
}
}