Const// Add to your Redux store
const store = configureStore({
reducer: {
[wellknownApi.reducerPath]: wellknownApi.reducer,
},
middleware: (getDefault) => getDefault().concat(wellknownApi.middleware),
});
// Fetch the configuration
const { data, error } = await store.dispatch(
wellknownApi.endpoints.configuration.initiate(wellknownUrl)
);
RTK Query API for fetching the OIDC well-known configuration endpoint.
The well-known endpoint (
.well-known/openid-configuration) provides OIDC Discovery information including:authorization_endpoint- URL for authorization requeststoken_endpoint- URL for token exchangeuserinfo_endpoint- URL for user info retrievalend_session_endpoint- URL for logout/session terminationrevocation_endpoint- URL for token revocationjwks_uri- URL for JSON Web Key Setissuer- The OIDC issuer identifier