Skip to content

Commit 1b08e6d

Browse files
authored
Merge pull request #9965 from Expensify/OSBotify-cherry-pick-staging-9961
🍒 Cherry pick PR #9961 to staging 🍒
2 parents 46cd2ae + 53b02fe commit 1b08e6d

File tree

9 files changed

+15
-10
lines changed

9 files changed

+15
-10
lines changed

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ android {
152152
minSdkVersion rootProject.ext.minSdkVersion
153153
targetSdkVersion rootProject.ext.targetSdkVersion
154154
multiDexEnabled rootProject.ext.multiDexEnabled
155-
versionCode 1001018412
156-
versionName "1.1.84-12"
155+
versionCode 1001018413
156+
versionName "1.1.84-13"
157157
}
158158
splits {
159159
abi {

ios/NewExpensify/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</dict>
3131
</array>
3232
<key>CFBundleVersion</key>
33-
<string>1.1.84.12</string>
33+
<string>1.1.84.13</string>
3434
<key>ITSAppUsesNonExemptEncryption</key>
3535
<false/>
3636
<key>LSApplicationQueriesSchemes</key>

ios/NewExpensifyTests/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>1.1.84.12</string>
22+
<string>1.1.84.13</string>
2323
</dict>
2424
</plist>

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "new.expensify",
3-
"version": "1.1.84-12",
3+
"version": "1.1.84-13",
44
"author": "Expensify, Inc.",
55
"homepage": "https://new.expensify.com",
66
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",

src/components/TestToolMenu.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import * as Network from '../libs/actions/Network';
99
import * as Session from '../libs/actions/Session';
1010
import ONYXKEYS from '../ONYXKEYS';
1111
import Button from './Button';
12-
import * as NetworkStore from '../libs/Network/NetworkStore';
1312
import TestToolRow from './TestToolRow';
1413
import networkPropTypes from './networkPropTypes';
1514
import compose from '../libs/compose';
@@ -60,7 +59,7 @@ const TestToolMenu = props => (
6059
<Button
6160
small
6261
text="Invalidate"
63-
onPress={() => NetworkStore.setAuthToken('pizza')}
62+
onPress={() => Session.invalidateAuthToken()}
6463
/>
6564
</TestToolRow>
6665

src/libs/Middleware/Reauthentication.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function Reauthentication(response, request, isFromSequentialQueue) {
4242
if (request.resolve) {
4343
request.resolve(data);
4444
}
45-
return;
45+
return data;
4646
}
4747

4848
// We are already authenticating

src/libs/actions/Session/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,11 @@ function invalidateCredentials() {
343343
Onyx.merge(ONYXKEYS.CREDENTIALS, {autoGeneratedLogin: '', autoGeneratedPassword: ''});
344344
}
345345

346+
function invalidateAuthToken() {
347+
NetworkStore.setAuthToken('pizza');
348+
Onyx.merge(ONYXKEYS.SESSION, {authToken: 'pizza'});
349+
}
350+
346351
/**
347352
* Clear the credentials and partial sign in session so the user can taken back to first Login step
348353
*/
@@ -520,4 +525,5 @@ export {
520525
setShouldShowComposeInput,
521526
changePasswordAndSignIn,
522527
invalidateCredentials,
528+
invalidateAuthToken,
523529
};

src/pages/settings/PreferencesPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const PreferencesPage = (props) => {
101101
</View>
102102

103103
{/* If we are in the staging environment then we enable additional test features */}
104-
{props.environment === CONST.ENVIRONMENT.STAGING && <TestToolMenu />}
104+
{_.contains([CONST.ENVIRONMENT.STAGING, CONST.ENVIRONMENT.DEV], props.environment) && <TestToolMenu />}
105105
</View>
106106
</ScrollView>
107107
</ScreenWrapper>

0 commit comments

Comments
 (0)