1
0
Fork 0
httpserver/auth/enums.go

15 Zeilen
583 B
Go

2021-01-09 20:39:05 +00:00
package auth
// AccountConstant is an type for easier linting.
type AccountConstant string
2021-01-19 23:13:25 +00:00
// These are Constants to save specific attributes in single points of use.
2021-01-09 20:39:05 +00:00
const (
2021-01-16 18:16:59 +00:00
// AccountID is the ID of the session. Prefferably it should be an UUIDv4 to mitigate security errors.
AccountID AccountConstant = "jti"
2021-01-16 18:16:59 +00:00
// AccountAnon is to identify Sessions as Anonymous sessions.
AccountAnon AccountConstant = "anon"
2021-01-16 18:16:59 +00:00
// AccountUser is an attribute that identifies the user with an string that is unique for the user, for Example the username.
AccountUser AccountConstant = "uid"
2021-01-09 20:39:05 +00:00
)