Versions in this module Expand all Collapse all v0 v0.9.0 Aug 12, 2026 Changes in this version + var ErrDenied = auth.ErrDeviceCodeDenied + var ErrExpired = auth.ErrDeviceCodeExpired + var ErrNoPrompt = errors.New("devicecode: a prompt function is required to display the user code") + func Connect(ctx context.Context, host string, prompt PromptFunc, opts ...Option) (*safeguard.Client, error) + type Option func(*config) + func WithConnectionOptions(opts ...safeguard.Option) Option + func WithPollInterval(d time.Duration) Option + type Prompt struct + ExpiresIn time.Duration + UserCode string + VerificationURI string + VerificationURIComplete string + type PromptFunc func(ctx context.Context, p Prompt) error