mirror of
https://github.com/get-drexa/drive.git
synced 2025-11-30 21:41:39 +00:00
feat: impl bearer auth middleware
This commit is contained in:
19
apps/backend/internal/user/err.go
Normal file
19
apps/backend/internal/user/err.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package user
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type NotFoundError struct {
|
||||
id uuid.UUID
|
||||
}
|
||||
|
||||
func newNotFoundError(id uuid.UUID) *NotFoundError {
|
||||
return &NotFoundError{id}
|
||||
}
|
||||
|
||||
func (e *NotFoundError) Error() string {
|
||||
return fmt.Sprintf("user not found: %v", e.id)
|
||||
}
|
||||
Reference in New Issue
Block a user