Welcome to the Kinde community

Updated 7 months ago

Passing-multiple-aud-values-to-kinde-provider-component

At a glance

when using KindeProvider for a react application how do I pass multiple aud values to the provider component

K
1 comment

To pass multiple audience (`aud`) values to the `KindeProvider` component in a React application, you can provide them as a white space-separated list in the `audience` prop. Here is an example: ``` import { KindeProvider } from "@kinde-oss/kinde-auth-react"; const App = () => ( <KindeProvider clientId="<your_kinde_client_id>" domain="<your_kinde_domain>" audience="<your_api1> <your_api2>" logoutUri={window.location.origin} redirectUri={window.location.origin} > <Routes /> </KindeProvider> ); ``` In this example, replace `<your_kinde_client_id>`, `<your_kinde_domain>`, `<your_api1>`, and `<your_api2>` with your actual Kinde client ID, domain, and API audience values. For more details, you can refer to the documentation.

Add a reply
Sign up and join the conversation on Slack