login

package
v0.0.0-...-df769fd Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package login implements interactive browser-based session capture using chromedp. It reuses a snapshot of the user's current browser profile so existing logged-in browser sessions can be imported for both Frisco and Delio.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BrowserCandidates

func BrowserCandidates() []string

BrowserCandidates returns platform-specific browser executable paths.

func CheckBrowserInstalled

func CheckBrowserInstalled() error

CheckBrowserInstalled verifies that a supported browser executable is available.

Types

type Options

type Options struct {
	Provider             string
	LoginURL             string
	TimeoutSec           int
	UserDataDir          string
	ProfileDirectory     string
	Debug                bool
	KeepBrowserOnFailure bool
}

Options configure browser-based session capture.

type Result

type Result struct {
	Saved              bool
	BaseURL            string
	UserID             any
	TokenSaved         bool
	RefreshTokenSaved  bool
	CookieSaved        bool
	Provider           string
	ProfileDirectory   string
	BrowserApp         string
	BrowserUserDataDir string
}

Result holds captured authentication data from browser login.

func Run

func Run(ctx context.Context, opts Options) (*Result, error)

Run captures a provider session. On macOS this uses the default browser app via a temporary remote-debugging session against a copied profile snapshot, without reading cookies directly from the browser database.

Jump to

Keyboard shortcuts

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