mirror of
https://github.com/Luzifer/mercedes-byocar-exporter.git
synced 2024-11-14 08:42:44 +00:00
13 lines
316 B
Go
13 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
|
||
|
}
|
||
|
)
|