()
| 35 | } |
| 36 | |
| 37 | func (e *OAuthError) Error() string { |
| 38 | if e.RawError != "" { |
| 39 | return e.RawError |
| 40 | } |
| 41 | return e.MsgKey |
| 42 | } |
| 43 | |
| 44 | // NewOAuthError creates a new OAuth error with the given message key |
| 45 | func NewOAuthError(msgKey string, params map[string]any) *OAuthError { |
no outgoing calls