code: func (a *AuthServer) ValidateGithubAuthCallback(q url.Values) (*GithubAuthResponse, error) {
  	re, err := a.validateGithubAuthCallback(q)
  	if err != nil {
  		a.EmitAuditEvent(events.UserSSOLoginFailure, events.EventFields{
  			events.LoginMethod:        events.LoginMethodGithub,
  			events.AuthAttemptSuccess: false,
  			events.AuthAttemptErr:     err.Error(),
  		})
  	} else {
  		a.EmitAuditEvent(events.UserSSOLogin, events.EventFields{
  			events.EventUser:          re.Username,
  			events.AuthAttemptSuccess: true,
  			events.LoginMethod:        events.LoginMethodGithub,
  		})
  	}
  	return re, err
  }
docs: // ValidateGithubAuthCallback validates Github auth callback redirect