Skip to content

Commit 81f6654

Browse files
committed
Enable persistAuthorization for Swagger UI
From the docs: "If set to true, it persists authorization data and it would not be lost on browser close/refresh".https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/
1 parent bf10494 commit 81f6654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/features/docs/view/Swagger.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const Swagger = ({ url }: { url: string }) => {
77
const [isLoading, setLoading] = useState(true)
88
return (
99
<LoadingWrapper showLoadingIndicator={isLoading}>
10-
<SwaggerUI url={url} onComplete={() => setLoading(false)} deepLinking />
10+
<SwaggerUI url={url} onComplete={() => setLoading(false)} deepLinking persistAuthorization />
1111
</LoadingWrapper>
1212
)
1313
}

0 commit comments

Comments
 (0)