2021-01-09 20:39:05 +00:00
|
|
|
package auth
|
|
|
|
|
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 string = "jti"
|
|
|
|
// AccountAnon is to identify Sessions as Anonymous sessions.
|
2021-01-09 20:39:05 +00:00
|
|
|
AccountAnon string = "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-01-09 20:39:05 +00:00
|
|
|
AccountUser string = "uid"
|
|
|
|
)
|