From 5ecb73b0c53f12863a8976dac96f019fccc510b6 Mon Sep 17 00:00:00 2001 From: Phillip Ho Date: Fri, 12 Apr 2024 15:56:22 -0700 Subject: [PATCH] chore: add missing engine pages (#338) --- .../engine/features/access-tokens/page.mdx | 39 +++++++++++++++++++ src/app/engine/features/admins/page.mdx | 26 +++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 src/app/engine/features/access-tokens/page.mdx create mode 100644 src/app/engine/features/admins/page.mdx diff --git a/src/app/engine/features/access-tokens/page.mdx b/src/app/engine/features/access-tokens/page.mdx new file mode 100644 index 00000000..2fd2b44a --- /dev/null +++ b/src/app/engine/features/access-tokens/page.mdx @@ -0,0 +1,39 @@ +import { Callout } from "@doc"; +import { createMetadata } from "@doc"; + +export const metadata = createMetadata({ + title: "Access Tokens | thirdweb Engine", + description: "Manage API access to your Engine instance.", +}); + +# Access Tokens + +Manage [API](engine/references/api) access to your Engine instance. Access tokens are valid until deleted. + +### Create an access token + +Grant API access to your Engine instance with long-lived access tokens. + +1. Navigate to the [thirdweb dashboard](https://thirdweb.com/dashboard/engine). +1. Select **Access Tokens**. +1. Select **Create Access Token**. + +Provide the header `Authorization: Bearer ` when calling the Engine API. + + + +Securely store access tokens and remove them if they are compromised. + + + +### Delete an access token + +1. Navigate to the [thirdweb dashboard](https://thirdweb.com/dashboard/engine). +1. Select **Access Tokens**. +1. Next to an access token, select **... > Delete**. + +## FAQ + +#### How do I generate short-lived access tokens? + +Consider using [Keypair Authentication](/engine/features/keypair-authentication) (advanced feature). diff --git a/src/app/engine/features/admins/page.mdx b/src/app/engine/features/admins/page.mdx new file mode 100644 index 00000000..0558f9c6 --- /dev/null +++ b/src/app/engine/features/admins/page.mdx @@ -0,0 +1,26 @@ +import { Callout } from "@doc"; +import { createMetadata } from "@doc"; + +export const metadata = createMetadata({ + title: "Admins | thirdweb Engine", + description: "Manage dashboard access to your Engine instance.", +}); + +# Admins + +Manage [dashboard](https://thirdweb.com/dashboard/engine) access to your Engine instance. + +## Add an admin + +1. Navigate to the [Engine dashboard page](https://thirdweb.com/dashboard/engine). +1. Select the **Permissions** tab. +1. Under **Admins**, select **Add New Admin**. +1. Provide the wallet address owned by the user to add. + +The user with this wallet address can now manage your Engine instance. + +## Remove an admin + +1. Navigate to the [Engine dashboard page](https://thirdweb.com/dashboard/engine). +1. Select the **Permissions** tab. +1. Next to an existing admin, select **... > Remove**.