Skip to content

Commit

Permalink
Enable persistAuthorization for Swagger UI
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
ulrikandersen committed Jul 24, 2024
1 parent 3143356 commit 4c477b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/docs/view/Swagger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Swagger = ({ url }: { url: string }) => {
const [isLoading, setLoading] = useState(true)
return (
<LoadingWrapper showLoadingIndicator={isLoading}>
<SwaggerUI url={url} onComplete={() => setLoading(false)} deepLinking />
<SwaggerUI url={url} onComplete={() => setLoading(false)} deepLinking persistAuthorization />
</LoadingWrapper>
)
}
Expand Down

0 comments on commit 4c477b6

Please sign in to comment.