tokenrefreshservice

package
v0.0.0-...-bd59d96 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseURL         = "https://mysmob.api.connect.skoda-auto.cz"
	CodeExchangeURL = BaseURL + "/api/v1/authentication/exchange-authorization-code?tokenType=CONNECT"
	RefreshTokenURL = BaseURL + "/api/v1/authentication/refresh-token?tokenType=CONNECT"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	*request.Helper
	// contains filtered or unexported fields
}

func New

func New(log *util.Logger, q url.Values) *Service

func (*Service) Exchange

func (v *Service) Exchange(q url.Values) (*vag.Token, error)

func (*Service) Refresh

func (v *Service) Refresh(token *vag.Token) (*vag.Token, error)

func (*Service) TokenSource

func (v *Service) TokenSource(token *vag.Token) vag.TokenSource

TokenSource creates token source. Token is refreshed automatically.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL