Skip to content

Commit 66465b1

Browse files
Update hub/apps/develop/security/oauth2.md
Co-authored-by: Copilot <[email protected]>
1 parent 89ad266 commit 66465b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hub/apps/develop/security/oauth2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ if (TokenResponse tokenResponse = tokenRequestResult.Response())
108108
{
109109
// ExpiresIn is zero when not present
110110
DateTime expires = winrt::clock::now();
111-
if (String expiresIn = tokenResponse.ExpiresIn(); expiresIn != 0)
111+
if (String expiresIn = tokenResponse.ExpiresIn(); std::stoi(expiresIn) != 0)
112112
{
113-
expires += std::chrono::seconds(static_cast<int64_t>(expiresIn));
113+
expires += std::chrono::seconds(static_cast<int64_t>(std::stoi(expiresIn)));
114114
}
115115
else
116116
{

0 commit comments

Comments
 (0)