1
0
Fork 0
httpserver/constants/auth.go

15 Zeilen
588 B
Go

2022-11-05 07:44:37 +00:00
package constants
// AccountConstant is an type for easier linting.
type AccountConstant string
// These are Constants to save specific attributes in single points of use.
const (
// AccountID is the ID of the session. Prefferably it should be an UUIDv4 to mitigate security errors.
AccountID AccountConstant = "jti"
// AccountAnon is to identify Sessions as Anonymous sessions.
AccountAnon AccountConstant = "anon"
// AccountUser is an attribute that identifies the user with an string that is unique for the user, for Example the username.
AccountUser AccountConstant = "uid"
)