login

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthPageURL

func AuthPageURL() string

Get the auth page URL

func Exchange

func Exchange(code string) (string, error)

Exchange an OAuth authorization code for an access token

func GetToken

func GetToken(port string) string

Get the access token

func OpenAuthPage

func OpenAuthPage() error

Open the auth page in the user's browser

func Username added in v1.4.0

func Username(token string) string

Get the username of the authed user

Types

This section is empty.

Jump to

Keyboard shortcuts

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