webauth

package
v0.4.116 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RedeemPendingLogin added in v0.4.115

func RedeemPendingLogin(ctx context.Context, code string) (token string, finish func(), err error)

RedeemPendingLogin finishes the login an earlier `fly auth login` left waiting, with the one-time code its approval page shows, and returns the token. Call finish once the token is saved: it removes the pending login, and a login still waiting in another process takes that as its cue to stop.

func RunWebLogin

func RunWebLogin(ctx context.Context, signup bool) (string, error)

func SaveToken

func SaveToken(ctx context.Context, token string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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