We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89ad266 commit 66465b1Copy full SHA for 66465b1
hub/apps/develop/security/oauth2.md
@@ -108,9 +108,9 @@ if (TokenResponse tokenResponse = tokenRequestResult.Response())
108
{
109
// ExpiresIn is zero when not present
110
DateTime expires = winrt::clock::now();
111
- if (String expiresIn = tokenResponse.ExpiresIn(); expiresIn != 0)
+ if (String expiresIn = tokenResponse.ExpiresIn(); std::stoi(expiresIn) != 0)
112
113
- expires += std::chrono::seconds(static_cast<int64_t>(expiresIn));
+ expires += std::chrono::seconds(static_cast<int64_t>(std::stoi(expiresIn)));
114
}
115
else
116
0 commit comments