mbb

package
v0.0.0-...-e05b1bb Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseURL  = "https://mbboauth-1d.prd.ece.vwg-connect.com"
	TokenURL = BaseURL + "/mbbcoauth/mobile/oauth2/v1/token"
)

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, clientID string) *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