Commit a80e71a
committed
fix(auth): correct expiration date comparison and format
- Fix logic bug where SQLite date string 'YYYY-MM-DD HH:MM:SS' was being
lexicographically compared to ISO string 'YYYY-MM-DDTHH:MM:SS.sssZ',
causing premature expiration due to space char < 'T'.
- Convert DB dates to proper ISO format before comparison.
- Ensure returned expires_at is in strict RFC3339 format for Go client.1 parent 4d6195d commit a80e71a
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
46 | | - | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
0 commit comments