From 6f16b56f31b7f0670dd1f1c22ab8cbc3265e48fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Thu, 18 Dec 2025 15:55:11 +0100 Subject: [PATCH] Allow Key extensions --- src/Appwrite/Auth/Key.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Appwrite/Auth/Key.php b/src/Appwrite/Auth/Key.php index 1adfa2be2d..df906ccd15 100644 --- a/src/Appwrite/Auth/Key.php +++ b/src/Appwrite/Auth/Key.php @@ -11,6 +11,9 @@ use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\System\System; +/** + * @template T of Key + */ class Key { public function __construct( @@ -96,6 +99,7 @@ class Key * Can be a stored API key or a dynamic key (JWT). * * @throws Exception + * @return T */ public static function decode( Document $project,