auth

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthStorage

type AuthStorage struct {
	// contains filtered or unexported fields
}

func NewAuthStorage

func NewAuthStorage(db *sql.DB) *AuthStorage

func (*AuthStorage) IssueToken

func (a *AuthStorage) IssueToken(ctx context.Context, clientTokenRaw, ip, userAgent string) (*Tokens, error)

func (*AuthStorage) Ping

func (s *AuthStorage) Ping(ctx context.Context) error

func (*AuthStorage) Queries

func (a *AuthStorage) Queries() *authsqlc.Queries

func (*AuthStorage) RefreshToken

func (a *AuthStorage) RefreshToken(ctx context.Context, refreshToken, ip, userAgent string) (string, error)

type Tokens

type Tokens struct {
	JWT          string
	RefreshToken string
}

Jump to

Keyboard shortcuts

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