Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement/2078 store user credentials in localstorage #2088

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const CompressionPlugin = require('compression-webpack-plugin');
const setWebpackPerformance = () => config => {
config.performance = {
hints: 'error',
// ~586 KiB for production
// ~684 KiB for production
// ~1953 KiB for development because flow increase the size of assets.
maxAssetSize: process.env.NODE_ENV === 'production' ? 700000 : 2000000,
assetFilter: assetFilename => {
Expand Down
3 changes: 2 additions & 1 deletion ui/src/ducks/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { mergeTheme } from '@scality/core-ui/dist/utils';
import * as defaultTheme from '@scality/core-ui/dist/style/theme';
import { loadUser, createUserManager } from 'redux-oidc';
import { USER_FOUND } from 'redux-oidc';

import { WebStorageStateStore } from 'oidc-client';
import { store } from '../index';
import * as Api from '../services/api';
import * as ApiK8s from '../services/k8s/api';
Expand Down Expand Up @@ -41,6 +41,7 @@ const defaultState = {
authority: '',
loadUserInfo: false,
post_logout_redirect_uri: '/',
userStore: new WebStorageStateStore({ store: localStorage }),
},
userManager: null,
isUserLoaded: false,
Expand Down