This commit is contained in:
12600k-rog-d4
2025-12-09 20:33:57 +08:00
parent 144ed3cbdf
commit 8f4d399cfd
1498 changed files with 3778 additions and 3654 deletions

View File

@@ -0,0 +1,22 @@
package token
import (
"errors"
)
var (
TokenNotFoundErr = errors.New("token not found")
ExpiredErr = errors.New("token is expired")
NotValidYetErr = errors.New("token not active yet")
MalformedErr = errors.New("that's not even a token")
InvalidErr = errors.New("couldn't handle this token")
)
const (
userTokenHeader = "Authorization"
userTokenParam = "_user_token"
expireSeconds = 3600
issuer = "bbs-go"
secret = ""
)