2021-01-09 20:39:05 +00:00
|
|
|
package auth
|
|
|
|
|
2021-11-07 20:41:48 +00:00
|
|
|
// 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.
|
2021-11-07 20:41:48 +00:00
|
|
|
AccountID AccountConstant = "jti"
|
2021-01-16 18:16:59 +00:00
|
|
|
// AccountAnon is to identify Sessions as Anonymous sessions.
|
2021-11-07 20:41:48 +00:00
|
|
|
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.
|
2021-11-07 20:41:48 +00:00
|
|
|
AccountUser AccountConstant = "uid"
|
2021-01-09 20:39:05 +00:00
|
|
|
)
|