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
609 stars 60 forks source link

void is not valid as a constituent in a union #1256

Open mfulton26 opened 1 month ago

mfulton26 commented 1 month ago

https://github.com/authts/react-oidc-context/blob/8f5d9b47c12831d257eda29c14cab7f1d0134e31/src/AuthProvider.tsx#L42

see no-invalid-void-type | typescript-eslint

I suggest using user: User | undefined or user?: User instead of user: User | void.