auth

package
v0.0.0-...-70bdc26 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Host           = "fabric-prod1.defang.dev:443"
	GitHubClientId = "7b41848ca116eac4b125" // Default GitHub OAuth app ID
)

Variables

This section is empty.

Functions

func GetExistingToken

func GetExistingToken() string

func GetTokenFile

func GetTokenFile(fabric string) string

func GetValidTokenAndSave

func GetValidTokenAndSave(ctx context.Context) (string, error)

func Login

func Login(ctx context.Context, grpcClient client.GrpcClient) (string, error)

func SaveToken

func SaveToken(fabric, token string) error

func ValidateToken

func ValidateToken(ctx context.Context, token string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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