database

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertAuthentication

func InsertAuthentication(
	ctx context.Context,
	accountId string,
	idTokenHash []byte,
	expirationDuration time.Duration,
	metadata *authenticationPkg.ClientMetadata,
	database *sql.DB,
) (*authenticationPkg.Authentication, error)

func InsertDbscChallenge

func InsertDbscChallenge(
	ctx context.Context,
	challenge string,
	authenticationId string,
	expirationDuration time.Duration,
	db *sql.DB,
) error

func InsertOauthFlow

func InsertOauthFlow(
	ctx context.Context,
	state string,
	codeVerifier string,
	redirectUrl string,
	expirationDuration time.Duration,
	database *sql.DB,
) (*oauth_flow.Flow, error)

func PopDbscChallenge

func PopDbscChallenge(ctx context.Context, challenge string, authenticationId string, db *sql.DB) (*dbsc_challenge.Challenge, error)

func PopOauthFlow

func PopOauthFlow(ctx context.Context, id string, db *sql.DB) (*oauth_flow.Flow, error)

func SelectEmailAddressAccount

func SelectEmailAddressAccount(ctx context.Context, emailAddress string, database *sql.DB) (*accountPkg.Account, error)

func SelectRefreshAuthentication

func SelectRefreshAuthentication(ctx context.Context, id string, database *sql.DB) (*authenticationPkg.Authentication, error)

func UpdateAuthenticationWithDbscPublicKey

func UpdateAuthenticationWithDbscPublicKey(ctx context.Context, id string, key []byte, database *sql.DB) error

func UpdateAuthenticationWithEnded

func UpdateAuthenticationWithEnded(ctx context.Context, id string, database *sql.DB) error

Types

This section is empty.

Directories

Path Synopsis
types

Jump to

Keyboard shortcuts

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