Commit b4ba49e
authored
fix(auth): resolve format string mismatch in ASF timestamp generation (#4095)
Fixes #4073
Changed timestamp generation in CognitoUserPoolASF.prepareJsonPayload to use Int64 instead of Double to match the %lli format specifier. This resolves the format string mismatch warning that was appearing during sign-in operations.
The issue was caused by floor() returning a Double while the format string expected an Int64. Converting directly to Int64 maintains the same functionality while eliminating the type mismatch.1 parent 8536147 commit b4ba49e
File tree
1 file changed
+1
-1
lines changed- AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/ASF
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments