activation

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package activation moves a single-use dashboard ticket from the CLI to the hosted API through the member's own browser.

Everything in this file is platform-independent: the loopback handoff server, the ticket and origin validation, and the wait. Only the act of asking the operating system to open a URL differs per platform, and that is the one thing behind a build tag (openBrowser and openApp).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, apiBaseURL, ticket string) error

Open serves the handoff page on loopback and asks the operating system to open it in the member's browser, then waits for the page to be fetched.

func OpenApp

func OpenApp(ctx context.Context, projectID string) error

OpenApp asks the operating system to route a validated Project deep link to the installed Overgent desktop app. The app mints its own one-time dashboard ticket and keeps the live Project inside its webview.

The id is validated here rather than in the per-platform handler so every platform inherits the same check: the value reaches a shell-adjacent OS facility, and only this form may.

Types

type Handoff added in v0.1.1

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

func Start added in v0.1.1

func Start(apiBaseURL, ticket string) (*Handoff, error)

func (*Handoff) URL added in v0.1.1

func (handoff *Handoff) URL() string

func (*Handoff) Wait added in v0.1.1

func (handoff *Handoff) Wait(ctx context.Context) error

Jump to

Keyboard shortcuts

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