Skip to content

Commit 3b9509a

Browse files
authored
reintroduce password type to auth inputs (#1039)
1 parent 1bd7b94 commit 3b9509a

File tree

1 file changed

+3
-0
lines changed
  • packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Authorization

1 file changed

+3
-0
lines changed

packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Authorization/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ function Authorization() {
4848
<FormItem label="Bearer Token" key={a.key + "-bearer"}>
4949
<FormTextInput
5050
placeholder="Bearer Token"
51+
password
5152
value={data[a.key].token ?? ""}
5253
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
5354
const value = e.target.value;
@@ -69,6 +70,7 @@ function Authorization() {
6970
<FormItem label="Bearer Token" key={a.key + "-oauth2"}>
7071
<FormTextInput
7172
placeholder="Bearer Token"
73+
password
7274
value={data[a.key].token ?? ""}
7375
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
7476
const value = e.target.value;
@@ -130,6 +132,7 @@ function Authorization() {
130132
<FormItem label={`${a.key}`} key={a.key + "-apikey"}>
131133
<FormTextInput
132134
placeholder={`${a.key}`}
135+
password
133136
value={data[a.key].apiKey ?? ""}
134137
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
135138
const value = e.target.value;

0 commit comments

Comments
 (0)