headscale
headscale copied to clipboard
Decompose OIDCCallback method
gocyclo
complains about OIDCCallback
method complexity. This PR decomposes this method into smaller ones to simplify it.
Hi @GrigoriyMikhalkin. Thanks for this PR. Happy to merge it.
One small thing. Could you please return the errors from the aux functions (instead of a bool for success)? That it will be able in the future to write some (very needed) tests for OIDC.
@juanfont Refactored aux functions to return errors.