Add exchange api endpoint, fix jwt authtoken var type error

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-20 18:51:15 +08:00
parent 9b83ab565a
commit cd93491d98
8 changed files with 75 additions and 48 deletions

View File

@@ -288,6 +288,7 @@ func (self *Token) HeaderVerify(header string) (string, error) {
)
if err != nil || !token.Valid {
fmt.Println(err)
return "", errors.New("invalid or expired token")
}