Enhance authentication error handling with specific error codes and inline validation feedback
This commit is contained in:
@@ -14,7 +14,11 @@ import (
|
||||
type ErrorCode string
|
||||
|
||||
const (
|
||||
CodeUnauthenticated ErrorCode = "UNAUTHENTICATED"
|
||||
CodeUnauthenticated ErrorCode = "UNAUTHENTICATED"
|
||||
// More specific authentication error codes
|
||||
CodeInvalidCredentials ErrorCode = "INVALID_CREDENTIALS"
|
||||
CodeInvalidPassword ErrorCode = "INVALID_PASSWORD"
|
||||
|
||||
CodePermissionDenied ErrorCode = "PERMISSION_DENIED"
|
||||
CodeNotFound ErrorCode = "NOT_FOUND"
|
||||
CodeConflict ErrorCode = "CONFLICT"
|
||||
|
||||
Reference in New Issue
Block a user