move the user agent constants of special token into the core package

This commit is contained in:
MaysWind
2026-02-15 01:15:50 +08:00
parent 3a66a3d655
commit 4b68641043
3 changed files with 15 additions and 15 deletions
+9
View File
@@ -6,6 +6,15 @@ import (
"github.com/golang-jwt/jwt/v5"
)
// TokenUserAgentCreatedViaCli is the user agent of token created via cli
const TokenUserAgentCreatedViaCli = ApplicationName + " Cli"
// TokenUserAgentForAPI is the user agent for API token
const TokenUserAgentForAPI = ApplicationName + " API"
// TokenUserAgentForMCP is the user agent for MCP token
const TokenUserAgentForMCP = ApplicationName + " MCP"
// TokenType represents token type
type TokenType byte