Refactor internal/auth to return domain specific errors (#905)

* Refactor internal/auth to return domain specific errors
This commit is contained in:
s-christoff authored and GitHub committed 2021-02-11 13:32:45 -06:00
1 parent 22462cdd84
commit 6623be8bfb
22 files changed
+502 -365

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ const (
SessionNotFound Code = 110 // SessionNotFound represents that the session was not found
InvalidSessionState Code = 111 // InvalidSessionState represents that the session was in an invalid state
TokenMismatch Code = 112 // TokenMismatch represents that there was a token mismatch
TooShort Code = 113 // TooShort represents an error that means the provided input is not meeting minimum length requirements
// PasswordTooShort results from attempting to set a password which is to short.
PasswordTooShort Code = 200