Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
developerkunal committed Sep 20, 2024
1 parent 72cd3e3 commit a58d57f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions authentication/authentication_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ func (a *Error) Error() string {
return fmt.Sprintf("%d %s: %s", a.StatusCode, a.Err, a.Message)
}

// GetMFAToken returns the MFA token associated with the error, if any.
func (a *Error) GetMFAToken() string {
if a == nil || a.MFAToken == "" {
return ""
}
return a.MFAToken
}

Expand Down

0 comments on commit a58d57f

Please sign in to comment.