Skip to content
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
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001018412
versionName "1.1.84-12"
versionCode 1001018413
versionName "1.1.84-13"
}
splits {
abi {
Expand Down
2 changes: 1 addition & 1 deletion ios/NewExpensify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.1.84.12</string>
<string>1.1.84.13</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down
2 changes: 1 addition & 1 deletion ios/NewExpensifyTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.1.84.12</string>
<string>1.1.84.13</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "new.expensify",
"version": "1.1.84-12",
"version": "1.1.84-13",
"author": "Expensify, Inc.",
"homepage": "https://new.expensify.com",
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",
Expand Down
3 changes: 1 addition & 2 deletions src/components/TestToolMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import * as Network from '../libs/actions/Network';
import * as Session from '../libs/actions/Session';
import ONYXKEYS from '../ONYXKEYS';
import Button from './Button';
import * as NetworkStore from '../libs/Network/NetworkStore';
import TestToolRow from './TestToolRow';
import networkPropTypes from './networkPropTypes';
import compose from '../libs/compose';
Expand Down Expand Up @@ -60,7 +59,7 @@ const TestToolMenu = props => (
<Button
small
text="Invalidate"
onPress={() => NetworkStore.setAuthToken('pizza')}
onPress={() => Session.invalidateAuthToken()}
/>
</TestToolRow>

Expand Down
2 changes: 1 addition & 1 deletion src/libs/Middleware/Reauthentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function Reauthentication(response, request, isFromSequentialQueue) {
if (request.resolve) {
request.resolve(data);
}
return;
return data;
}

// We are already authenticating
Expand Down
6 changes: 6 additions & 0 deletions src/libs/actions/Session/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,11 @@ function invalidateCredentials() {
Onyx.merge(ONYXKEYS.CREDENTIALS, {autoGeneratedLogin: '', autoGeneratedPassword: ''});
}

function invalidateAuthToken() {
NetworkStore.setAuthToken('pizza');
Onyx.merge(ONYXKEYS.SESSION, {authToken: 'pizza'});
}

/**
* Clear the credentials and partial sign in session so the user can taken back to first Login step
*/
Expand Down Expand Up @@ -520,4 +525,5 @@ export {
setShouldShowComposeInput,
changePasswordAndSignIn,
invalidateCredentials,
invalidateAuthToken,
};
2 changes: 1 addition & 1 deletion src/pages/settings/PreferencesPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const PreferencesPage = (props) => {
</View>

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