alist/internal/token/token.go
Season Shi 83c86f0e1c
Add File and Mem based KV
NOT TESTED: TokenKV Function
2023-03-23 00:19:37 +08:00

19 lines
368 B
Go

package token
import "github.com/gin-gonic/gin"
// Generate a URL token
func genToken(c *gin.Context) string {
return "token"
}
// Verify a URL token (Auto Delete)
func verifyToken(c *gin.Context, token string) bool {
return token == "token"
}
// Verify a URL token (Not Delete)
func verifyTokenND(c *gin.Context, token string) bool {
return token == "token"
}