Allow Key extensions

This commit is contained in:
Matej Bačo 2025-12-18 15:55:11 +01:00
parent 59f178d634
commit 6f16b56f31

View file

@ -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,