auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithIdentity

func WithIdentity(
	ctx context.Context,
	identity Identity,
) context.Context

Types

type Identity

type Identity struct {
	Email string
}

func MustIdentity

func MustIdentity(
	ctx context.Context,
) Identity

type TokenVerifier

type TokenVerifier interface {
	Verify(
		ctx context.Context,
		rawToken string,
	) (Identity, error)
}

func NewTokenVerifier

func NewTokenVerifier(
	ctx context.Context,
	cfg TokenVerifierConfig,
) (TokenVerifier, error)

type TokenVerifierConfig

type TokenVerifierConfig struct {
	Issuer   string
	ClientID string
	TokenUse string
}

Jump to

Keyboard shortcuts

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