authorization

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	// LicenseID specifies ID of license which owns the token.
	LicenseID int
	// AccessToken is a customer access token returned by LiveChat OAuth Server.
	AccessToken string
	// Region is a datacenter for LicenseID (`dal` or `fra`).
	Region string
}

Token represents SSO token from Chat API's perspective.

type TokenGetter

type TokenGetter func() *Token

TokenGetter is called by each API method to obtain valid Token. If TokenGetter returns nil, the method won't be executed on API.

Jump to

Keyboard shortcuts

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