mirror of
https://github.com/Luzifer/mercedes-byocar-exporter.git
synced 2024-11-08 22:10:07 +00:00
12 lines
316 B
Go
12 lines
316 B
Go
package credential
|
|
|
|
import "time"
|
|
|
|
type (
|
|
Store interface {
|
|
GetClientCredentials() (clientID, clientSecret string, err error)
|
|
GetToken() (accessToken, refreshToken string, expiry time.Time, err error)
|
|
HasCredentials() (bool, error)
|
|
UpdateToken(accessToken, refreshToken string, expiry time.Time) error
|
|
}
|
|
)
|