mirror of
https://github.com/sstent/go-garminconnect.git
synced 2025-12-06 08:02:02 +00:00
with garth
This commit is contained in:
15
internal/auth/garth/mock_mfa_prompter.go
Normal file
15
internal/auth/garth/mock_mfa_prompter.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package garth
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
// MockMFAPrompter is a mock implementation of MFAPrompter for testing
|
||||
type MockMFAPrompter struct {
|
||||
Code string
|
||||
Err error
|
||||
}
|
||||
|
||||
func (m *MockMFAPrompter) GetMFACode(ctx context.Context) (string, error) {
|
||||
return m.Code, m.Err
|
||||
}
|
||||
Reference in New Issue
Block a user