mg-library 1.0.783 → 1.0.784

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/login.js +8 -8
  2. package/package.json +1 -1
package/login.js CHANGED
@@ -56,10 +56,10 @@ export function onPressLogout(dispatch, actions, app, apiUrl) {
56
56
  dispatch(actions.apiRequest());
57
57
  axios.post(apiUrl + '/Logout', requestData, mgFunctionsLib.getRequestHeader())
58
58
  .then(response => {
59
- mgFunctionsLib.writeToLocalStorage(mgConstantsLib.ACCESS_TOKEN, '');
60
- mgFunctionsLib.writeToLocalStorage(mgConstantsLib.AUTH_SERVER, '');
61
- mgFunctionsLib.writeToLocalStorage(mgConstantsLib.AUTH_USERNAME, '');
62
- mgFunctionsLib.writeToLocalStorage(mgConstantsLib.AUTH_PASSWORD, '');
59
+ mgFunctionsLib.writeToLocalStorage(mgConstantsLib.ACCESS_TOKEN, null);
60
+ mgFunctionsLib.writeToLocalStorage(mgConstantsLib.AUTH_SERVER, null);
61
+ mgFunctionsLib.writeToLocalStorage(mgConstantsLib.AUTH_USERNAME, null);
62
+ mgFunctionsLib.writeToLocalStorage(mgConstantsLib.AUTH_PASSWORD, null);
63
63
  dispatch(actions.disconnectFromServer());
64
64
  dispatch(actions.apiSuccess());
65
65
  })
@@ -186,10 +186,10 @@ export async function loadAuthInfoFromStorage() {
186
186
  return Object.fromEntries(result);
187
187
  } catch (e) {
188
188
  return [
189
- [mgConstantsLib.ACCESS_TOKEN, undefined],
190
- [mgConstantsLib.AUTH_SERVER, undefined],
191
- [mgConstantsLib.AUTH_USERNAME, undefined],
192
- [mgConstantsLib.AUTH_PASSWORD, undefined]
189
+ [mgConstantsLib.ACCESS_TOKEN, null],
190
+ [mgConstantsLib.AUTH_SERVER, null],
191
+ [mgConstantsLib.AUTH_USERNAME, null],
192
+ [mgConstantsLib.AUTH_PASSWORD, null]
193
193
  ];
194
194
  }
195
195
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.783",
3
+ "version": "1.0.784",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "react-native": "index.js",