token

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientRedirectUrl = "http://127.0.0.1:6391/callback"
	Directory         = ".heimdallr"
)

Variables

This section is empty.

Functions

func OpenBrowser

func OpenBrowser(u, commandOverride string) error

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(resolver *net.Resolver) *Client

func (*Client) RequestToken

func (c *Client) RequestToken(endpoint, overrideOpenURLCommand string, insecure bool) (string, error)

type ExchangeResponse

type ExchangeResponse struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
}

Jump to

Keyboard shortcuts

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