From 7cdf43ef3083b4e7ed34d4d9f52b6488f9184e26 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Sat, 16 Jan 2021 19:16:59 +0100 Subject: [PATCH] documented the enum --- auth/enums.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/auth/enums.go b/auth/enums.go index a58a36e..84d390b 100644 --- a/auth/enums.go +++ b/auth/enums.go @@ -1,7 +1,10 @@ package auth const ( - AccountID string = "jti" + // 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. AccountAnon string = "anon" + // AccountUser is an attribute that identifies the user with an string that is unique for the user, for Example the username. AccountUser string = "uid" )