Skip to content

Set default clientId/clientSecret in swagger-ui-react #5704

@gavmck

Description

@gavmck

I've previously set the default clientId and secret using the swagger-ui package via the initOAuth instance method.

ui.initOAuth({
  clientId: "myAwesomeId",
  clientSecret: "superSecret123",
});

I've had to move to swagger-ui-react for compatibility with React 16.
How do I set the defaults there? I don't see a way of accessing the instance.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions