clerk

package
v0.0.390 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnauthorized = fnerrors.New("Unauthorized")
)

Functions

func JWT

func JWT(ctx context.Context, st *State) (string, error)

func SetupFlags added in v0.0.161

func SetupFlags(flags *pflag.FlagSet)

Types

type State

type State struct {
	Email          string `json:"email,omitempty"`
	Name           string `json:"name,omitempty"`
	ClerkClient    string `json:"clerk_client,omitempty"`
	GithubUsername string `json:"github_username,omitempty"`
	DevSession     string `json:"dev_session,omitempty"` // Only for DEV instance
}

func Login

func Login(ctx context.Context, ticket string) (*State, error)

Jump to

Keyboard shortcuts

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