Update to allow auth (api-key)

This commit is contained in:
2023-05-05 11:38:46 -05:00
parent 25414a8515
commit 97d499b0b6

View File

@ -117,11 +117,6 @@ function TableDeveloperView({table}: Props): JSX.Element
})(); })();
} }
const beforeTry = (e: any) =>
{
e.detail.request.headers.append("Authorization", "Bearer " + accessToken);
};
const selectApi = async (event: SelectChangeEvent) => const selectApi = async (event: SelectChangeEvent) =>
{ {
setSelectedApi(null); setSelectedApi(null);
@ -208,11 +203,11 @@ function TableDeveloperView({table}: Props): JSX.Element
font-size="large" font-size="large"
render-style="view" render-style="view"
show-header={false} show-header={false}
allow-authentication={false} allow-authentication={true}
persist-auth={true}
allow-server-selection={false} allow-server-selection={false}
allow-spec-file-download={true} allow-spec-file-download={true}
sort-endpoints-by="method" sort-endpoints-by="method"
beforeTry={beforeTry}
schema-description-expanded={true} schema-description-expanded={true}
css-file={"/api/rapi-doc.css"} css-file={"/api/rapi-doc.css"}
css-classes={"qqq-rapi-doc"} css-classes={"qqq-rapi-doc"}