new version

This commit is contained in:
Ivan Rezchikov
2026-07-11 19:04:41 +03:00
parent 3c64666299
commit b7334696e4
16 changed files with 313 additions and 269 deletions
@@ -41,6 +41,18 @@ func IPKeyFn(prefix string) func(c *gin.Context) string {
}
}
func TokenKeyFn(c *gin.Context) string {
return "token:" + c.ClientIP()
}
func RevokeKeyFn(c *gin.Context) string {
return "revoke:" + c.ClientIP()
}
func RefreshKeyFn(c *gin.Context) string {
return "refresh:" + c.ClientIP()
}
func itoa(n int) string {
if n < 0 {
return "0"