// ErrOpenIDConnectInitialize represents a "OpenIDConnectInitialize" kind of error.
typeErrOpenIDConnectInitializestruct{
OpenIDConnectAutoDiscoveryURLstring
ProviderNamestring
Causeerror
}
// IsErrOpenIDConnectInitialize checks if an error is a ExternalLoginUserAlreadyExist.
funcIsErrOpenIDConnectInitialize(errerror)bool{
_,ok:=err.(ErrOpenIDConnectInitialize)
returnok
}
func(errErrOpenIDConnectInitialize)Error()string{
returnfmt.Sprintf("Failed to initialize OpenID Connect Provider with name '%s' with url '%s': %v",err.ProviderName,err.OpenIDConnectAutoDiscoveryURL,err.Cause)