auth0

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client ...

func New

func New(opts NewOptions) *Client

New returns new Client.

func (*Client) Token

func (c *Client) Token(ctx context.Context, audience string) (*Token, error)

Token returns new Token from Auth0 with provided audience.

type NewOptions

type NewOptions struct {
	Domain       string
	ClientID     string
	ClientSecret string
	HTTPClient   *http.Client
}

NewOptions ...

type Token

type Token struct {
	AccessToken string `json:"access_token"`
	TokenType   string `json:"token_type"`
	ExpiresIn   uint   `json:"expires_in"`
}

Token ...

Jump to

Keyboard shortcuts

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