mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Allow Key extensions
This commit is contained in:
parent
59f178d634
commit
6f16b56f31
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue