You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:
Browser:
Chrome version XX
Firefox version XX
IE version XX
Edge version XX
Safari version XX
Library version
Library version: X.Y.Z
Current behavior
when setting cacheLocation with typescript the user becomes victim to type widening so something like this is required
const config = {
auth: {
authority: (process.env.REACT_APP_AUTHORITY as string),
clientId: (process.env.REACT_APP_AAD_APP_CLIENT_ID as string),
},
cache: {
cacheLocation: ('localStorage' as CacheLocation),
storeAuthStateInCookie: true,
},
};
Expected behavior
I think it would be a bit clearer if CacheLocation was an enum so that may be used directly without type widening
I'm submitting a...
Browser:
Library version
Current behavior
when setting cacheLocation with typescript the user becomes victim to type widening so something like this is required
Expected behavior
I think it would be a bit clearer if CacheLocation was an enum so that may be used directly without type widening
See discussion here: syncweek-react-aad/react-aad#95 (comment)
Minimal reproduction of the problem with instructions
The text was updated successfully, but these errors were encountered: