mirror of
https://github.com/appwrite/appwrite
synced 2026-05-21 16:08:22 +00:00
update: token scopes.
This commit is contained in:
parent
23d73e1f3e
commit
de57c8f35e
3 changed files with 3 additions and 3 deletions
|
|
@ -45,7 +45,7 @@ class Delete extends Action
|
|||
description: <<<EOT
|
||||
Delete a token by its unique ID.
|
||||
EOT,
|
||||
auth: [AuthType::ADMIN],
|
||||
auth: [AuthType::ADMIN, AuthType::KEY],
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: Response::STATUS_CODE_NOCONTENT,
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class Get extends Action
|
|||
description: <<<EOT
|
||||
Get a token by its unique ID.
|
||||
EOT,
|
||||
auth: [AuthType::ADMIN],
|
||||
auth: [AuthType::ADMIN, AuthType::KEY],
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: Response::STATUS_CODE_OK,
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ class Update extends Action
|
|||
description: <<<EOT
|
||||
Update a token by its unique ID. Use this endpoint to update a token's expiry date.
|
||||
EOT,
|
||||
auth: [AuthType::ADMIN],
|
||||
auth: [AuthType::ADMIN, AuthType::KEY],
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: Response::STATUS_CODE_OK,
|
||||
|
|
|
|||
Loading…
Reference in a new issue