Skip to content

Commit 79e3ea2

Browse files
committed
fix(docs): fix the build error
fix the build error
1 parent 95c1e3d commit 79e3ea2

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

docs/docs/recipes/custom-jwt/README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import TestResult from './assets/test-result.webp';
1010

1111
# 🎫 Custom JWT claims
1212

13-
<Availability cloud oss={false} />
13+
<Availability cloud oss="comingSoon" />
1414

1515
## Introduction
1616

@@ -58,9 +58,7 @@ To add custom claims to the JWT access token, you need to provide a script that
5858

5959
Visit the **Logto Console** and click on the **Custom JWT** navigation item in the left sidebar.
6060

61-
<center>
62-
<img src={CustomJwtLanding} alt="custom jwt landing" width={800} />
63-
</center>
61+
![Custom JWT landing](./assets/custom-jwt-landing.webp)
6462

6563
There are two different types of access tokens that you can customize the JWT claims for:
6664

@@ -75,9 +73,7 @@ Pick any type of access token you want to customize the JWT claims for, and clic
7573

7674
In the `Custom JWT` details page, you may find the script editor to write your custom JWT claims script. The script should be a `JavaScript` function that returns an object of custom claims.
7775

78-
<center>
79-
<img src={CustomJwtDetails} alt="custom jwt details" width={800} />
80-
</center>
76+
![Custom JWT details](./assets/custom-jwt-details.webp)
8177

8278
### Edit the script
8379

@@ -168,8 +164,6 @@ Make sure to test your script before saving it. Click on the `Test Context` tab
168164

169165
Click on the `Run test` on the right-top corner of the editor to run the script with the mock data. The output of the script will be displayed in the `Test Result` drawer.
170166

171-
<center>
172-
<img src={TestResult} alt="test result" width={800} />
173-
</center>
167+
![Test result](./assets/test-result.webp)
174168

175169
Click on the **Create** button to save the script. The custom JWT claims script will be saved and applied to the access token issuing process.

0 commit comments

Comments
 (0)