authcache

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	ProviderID  string
	AuthScope   string
	Environment string
	AppKeyHash  string
}

type Store

type Store interface {
	Get(ctx context.Context, key Key) (Token, bool, error)
	Put(ctx context.Context, token Token) error
}

type Token

type Token struct {
	Key
	AccessToken string
	TokenType   string
	ExpiresIn   int
	ExpiresAt   time.Time
	IssuedAt    time.Time
	UpdatedAt   time.Time
}

Jump to

Keyboard shortcuts

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