identity

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeychainService = "focusd-engine"
	KeychainUser    = "auth-token"
)

Variables

This section is empty.

Functions

func GetHMACSecret

func GetHMACSecret() []byte

func GetToken

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

func PerformHandshake

func PerformHandshake(ctx context.Context, client apiv1connect.ApiServiceClient) error

func ScheduleHandshake

func ScheduleHandshake(ctx context.Context, client apiv1connect.ApiServiceClient) error

Types

type Service

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

func NewService

func NewService(apiClient apiv1connect.ApiServiceClient) *Service
func (s *Service) CheckoutLink(ctx context.Context) (string, error)

func (*Service) GetAccountTier

func (*Service) GetToken

func (s *Service) GetToken(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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