mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Allow Key extensions
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user