Documentation
¶
Index ¶
- type Account
- type DBTX
- type GetCurrentJWKParams
- type Jwk
- type Queries
- func (q *Queries) CleanupOldKeys(ctx context.Context, createdAt string) error
- func (q *Queries) DeleteExpiredJWKS(ctx context.Context) error
- func (q *Queries) GetAllCurrentJWKS(ctx context.Context) ([]Jwk, error)
- func (q *Queries) GetCurrentJWK(ctx context.Context, arg GetCurrentJWKParams) (string, error)
- func (q *Queries) StoreJWK(ctx context.Context, arg StoreJWKParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Session
- type StoreJWKParams
- type User
- type Verification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
ID string `json:"id"`
UserID string `json:"user_id"`
Provider string `json:"provider"`
ProviderAccountID sql.NullString `json:"provider_account_id"`
PasswordHash sql.NullString `json:"password_hash"`
AccessToken sql.NullString `json:"access_token"`
RefreshToken sql.NullString `json:"refresh_token"`
ExpiresAt sql.NullString `json:"expires_at"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
type GetCurrentJWKParams ¶
type GetCurrentJWKParams struct {
Algorithm string `json:"algorithm"`
Use sql.NullString `json:"use"`
}
type Jwk ¶
type Jwk struct {
Kid string `json:"kid"`
KeyData string `json:"key_data"`
Algorithm string `json:"algorithm"`
Use sql.NullString `json:"use"`
CreatedAt string `json:"created_at"`
ExpiresAt sql.NullString `json:"expires_at"`
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CleanupOldKeys ¶
func (*Queries) GetAllCurrentJWKS ¶
func (*Queries) GetCurrentJWK ¶
JWT Key queries
type Session ¶
type Session struct {
ID string `json:"id"`
UserID string `json:"user_id"`
Token string `json:"token"`
RefreshToken sql.NullString `json:"refresh_token"`
ExpiresAt string `json:"expires_at"`
CreatedAt string `json:"created_at"`
IpAddress sql.NullString `json:"ip_address"`
UserAgent sql.NullString `json:"user_agent"`
}
type StoreJWKParams ¶
type StoreJWKParams struct {
Kid string `json:"kid"`
KeyData string `json:"key_data"`
Algorithm string `json:"algorithm"`
Use sql.NullString `json:"use"`
CreatedAt string `json:"created_at"`
ExpiresAt sql.NullString `json:"expires_at"`
}
Click to show internal directories.
Click to hide internal directories.