Skip to content

Commit a996724

Browse files
authored
Fix App Check on 32 bit desktop (#1341)
1 parent 0b4aaa6 commit a996724

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app_check/src/desktop/app_check_desktop.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ ReferenceCountedFutureImpl* AppCheckInternal::future() {
5353
}
5454

5555
bool AppCheckInternal::HasValidCacheToken() const {
56-
// Get the current time, in milliseconds
57-
int64_t current_time = std::time(nullptr) * 1000;
56+
// Get the current time, in milliseconds (Done in two lines because of x86)
57+
int64_t current_time = std::time(nullptr);
58+
current_time *= 1000;
5859
// TODO(amaurice): Add some additional time to the check
5960
return cached_token_.expire_time_millis > current_time;
6061
}

release_build_files/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ code.
629629
## Release Notes
630630
### Upcoming Release
631631
- Changes
632+
- App Check (Desktop): Fixed expired tokens being cached on 32-bit systems.
632633
- Remote Config (Desktop): Fixed handling of time zones on Windows when the
633634
time zone name in the current system language contains an accented
634635
character or apostrophe. This adds a requirement for applications using

0 commit comments

Comments
 (0)