React SDK
Provider
EchoProvider setup and configuration
Provider
EchoProvider Setup
The EchoProvider
component wraps your application and manages OAuth2 + PKCE authentication flow state.
import { EchoProvider } from '@merit-systems/echo-react-sdk';
function App() {
return (
<EchoProvider config={{
appId: 'your-echo-app-id',
}}>
<YourApp />
</EchoProvider>
);
}
EchoAuthConfig
import type { EchoAuthConfig } from '@merit-systems/echo-react-sdk';
EchoAuthConfig
Prop | Type | Default |
---|---|---|
redirectUri? | string | - |
scope? | string | - |
appId | string | - |
basePath? | string | - |
baseRouterUrl? | string | - |
baseEchoUrl? | string | - |