mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-12 02:42:50 +09:00
exported API errors
This commit is contained in:
2
oidc.go
2
oidc.go
@@ -416,7 +416,7 @@ func (h *Headscale) OIDCCallback(
|
||||
log.Debug().Msg("Registering new machine after successful callback")
|
||||
|
||||
namespace, err := h.GetNamespace(namespaceName)
|
||||
if errors.Is(err, errNamespaceNotFound) {
|
||||
if errors.Is(err, ErrNamespaceNotFound) {
|
||||
namespace, err = h.CreateNamespace(namespaceName)
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user