Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthInfo ¶
type AuthInfo struct {
SessionToken string `json:"session_token"`
Handle string `json:"handle"`
ConnectedAt string `json:"connected_at"`
Endpoint string `json:"endpoint"`
}
AuthInfo stores the companion app's session with SC Bridge.
func Load ¶
func Load() *AuthInfo
Load reads auth info from disk. Returns nil if not found or invalid.
func NewAuthInfo ¶
NewAuthInfo creates an AuthInfo for a successful connection.
type OAuthFlow ¶
type OAuthFlow struct {
// contains filtered or unexported fields
}
OAuthFlow manages the temporary HTTP server for the OAuth callback.
func NewOAuthFlow ¶
NewOAuthFlow creates a new OAuth flow with a random state and port.
func (*OAuthFlow) ConnectURL ¶
ConnectURL returns the URL to open in the browser.
type OAuthResult ¶
OAuthResult contains the result of an OAuth flow.
Click to show internal directories.
Click to hide internal directories.