template-monorepo/internal/logic/auth/errors.go

12 lines
375 B
Go

package auth
import (
errs "gateway/internal/library/errors"
"gateway/internal/library/errors/code"
)
// errb is the Auth module error builder (scope 28).
// Use only for auth orchestration: ZITADEL mapping, login policy, oauth state, missing auth deps.
// Member / notification usecase errors must be returned unchanged (return nil, err).
var errb = errs.For(code.Auth)