init
This commit is contained in:
22
bbs-go-active/server/internal/pkg/token/constants.go
Normal file
22
bbs-go-active/server/internal/pkg/token/constants.go
Normal 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 = ""
|
||||
)
|
||||
Reference in New Issue
Block a user