login

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package login handles login and authentication with Encore's platform.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAuthKey added in v0.18.0

func WithAuthKey(authKey string) (*conf.Config, error)

Types

type Flow

type Flow struct {
	URL     string            // Local URL the flow is listening on
	LoginCh chan *conf.Config // Successful logins are sent on this
	// contains filtered or unexported fields
}

Flow keeps the state of an ongoing login flow.

func Begin

func Begin() (f *Flow, err error)

Begin begins a new login attempt.

func (*Flow) Close

func (f *Flow) Close()

Close closes the login flow.

Jump to

Keyboard shortcuts

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