authts / react-oidc-context

Lightweight auth library based on oidc-client-ts for React single page applications (SPA). Support for hooks and higher-order components (HOC).
MIT License
701 stars 65 forks source link

Any way to have a Provider from react-redux as a child component? #962

Open shuhayb opened 1 year ago

shuhayb commented 1 year ago

I am trying to put a Provider with the redux store as a child component inside the AuthProvider. This doesn't seem to be supported in this package? Is there a way to have a workaround for this?

pamapa commented 1 year ago

I use the AuthProvider as child of the redux store. When you come up with a light-way fix/improvement of vice versa (redux store provider as child of AuthProvider) i would merge that feature.

coder-shanks commented 5 months ago

@shuhayb I already use Provider from react-redux as a child of AuthProvider and my application works as expected.

Screenshot 2024-05-21 at 2 03 03 PM