Commit 129d143
committed
fix(security): correct CSRF token expiration from nanoseconds to 1 hour
The CSRF Expiration was set to `3600` (integer) but Fiber's CSRF
middleware expects a `time.Duration`. Go interpreted this as
3600 nanoseconds (~3.6 microseconds), causing tokens to expire
instantly and all login attempts to fail with "CSRF token validation
failed".
Changed from `Expiration: 3600` to `Expiration: time.Hour`.1 parent 60bf7e6 commit 129d143
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
0 commit comments