auth

package
v0.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDocsAPIKey

func DeleteDocsAPIKey() error

func DeleteInboxCredentials

func DeleteInboxCredentials() error

func HTTPClient

func HTTPClient(ctx context.Context, clientID, clientSecret string) *http.Client

HTTPClient returns an *http.Client that injects Bearer tokens automatically.

func LoadDocsAPIKey

func LoadDocsAPIKey() (string, error)

func LoadInboxCredentials

func LoadInboxCredentials() (appID, appSecret string, err error)

func StoreDocsAPIKey

func StoreDocsAPIKey(key string) error

func StoreInboxCredentials

func StoreInboxCredentials(appID, appSecret string) error

func TokenSource

func TokenSource(ctx context.Context, clientID, clientSecret string) oauth2.TokenSource

TokenSource returns an oauth2 token source that auto-fetches and refreshes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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