Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwaggerUIReact not support token persistence after refresh or page route change #7389

Closed
e2rabi opened this issue Jun 25, 2021 · 0 comments · Fixed by #7842
Closed

SwaggerUIReact not support token persistence after refresh or page route change #7389

e2rabi opened this issue Jun 25, 2021 · 0 comments · Fixed by #7842

Comments

@e2rabi
Copy link

e2rabi commented Jun 25, 2021

Hello ,
I read the documentation of the library I see that in the swagger-ui there's a key that may help to persist the authorization :

I installed SwaggerUiReact using NPM , I'm using : "swagger-ui-react": "3.43.0"
In my yaml openAPi I'm using :

security:

  • bearerAuth: []

So I Tried to use the same key on SwaggerUiReact but it's not implemented :

        <SwaggerUI persistAuthorization="true" url="an url... " docExpansion ="none" onComplete={() => this.onComplete()} />

Is there any alternative for the persistAuthorization="true" for ReactJS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant