diff --git a/api/account/common.go b/api/account/common.go index 93f17ed..bfa3e39 100644 --- a/api/account/common.go +++ b/api/account/common.go @@ -21,6 +21,9 @@ const ( ArgonThreads = 4 ArgonKeySize = 32 ArgonSaltSize = 16 + + UUIDSize = 16 + TokenSize = 32 ) var isValidUsername = regexp.MustCompile(`^\w{1,16}$`).MatchString diff --git a/api/account/register.go b/api/account/register.go index 664dea8..e8433cb 100644 --- a/api/account/register.go +++ b/api/account/register.go @@ -7,11 +7,6 @@ import ( "github.com/pagefaultgames/pokerogue-server/db" ) -const ( - UUIDSize = 16 - TokenSize = 32 -) - type RegisterRequest GenericAuthRequest // /account/register - register account