Commit cd3ea818 authored by Nikolai R Kristiansen's avatar Nikolai R Kristiansen

Remove surounding "'s from userToken

parent 2045a385
Pipeline #722 failed with stage
in 1 minute and 45 seconds
......@@ -35,9 +35,10 @@ export async function migrateReduxPersistFourToFive(registerUserSuccess) {
const userToken = await AsyncStorage.getItem(userTokenKey);
console.log(userTokenKey, userToken);
const user = await AsyncStorage.getItem(userKey);
console.log(userKey, user, JSON.parse(user));
registerUserSuccess({ auth_token: userToken, ...JSON.parse(user) });
registerUserSuccess({ auth_token: JSON.parse(userToken), ...JSON.parse(user) });
await AsyncStorage.multiRemove(v4Keys);
console.log('successfully migrated to new redux-persist');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment