Skip to content

Commit 632e9b3

Browse files
author
Juan Font
committed
Return the correct error on cache miss
1 parent b87e1ef commit 632e9b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oidc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ func (h *Headscale) validateMachineForOIDCCallback(
451451
Msg("Failed to write response")
452452
}
453453

454-
return nil, false, errOIDCInvalidMachineState
454+
return nil, false, errOIDCNodeKeyMissing
455455
}
456456

457457
var nodeKey key.NodePublic

0 commit comments

Comments
 (0)