tokenrefreshservice

package
v0.0.0-...-175a4df Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseURL         = "https://tokenrefreshservice.apps.emea.vwapps.io"
	CodeExchangeURL = BaseURL + "/exchangeAuthCode"
	RefreshTokenURL = BaseURL + "/refreshTokens"
)

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