mirror of
https://github.com/Luzifer/mercedes-byocar-exporter.git
synced 2024-11-10 06:50:08 +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
|
||
|
}
|
||
|
)
|