identity

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 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 GetAccountTier added in v0.0.24

func GetHMACSecret

func GetHMACSecret() []byte

func GetToken

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

func GetTrialEndsAt added in v0.0.24

func GetTrialEndsAt() int64

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) CustomerPortal added in v0.0.24

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

func (*Service) GetAccountTier

func (*Service) GetToken

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

func (*Service) GetTrialEndsAt added in v0.0.24

func (s *Service) GetTrialEndsAt(ctx context.Context) (int64, error)

Jump to

Keyboard shortcuts

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