MCPcopy
hub / github.com/tinyauthapp/tinyauth / DeleteSession

Method DeleteSession

internal/repository/session_queries.sql.go:91–94  ·  view source on GitHub ↗
(ctx context.Context, uuid string)

Source from the content-addressed store, hash-verified

89`
90
91func (q *Queries) DeleteSession(ctx context.Context, uuid string) error {
92 _, err := q.db.ExecContext(ctx, deleteSession, uuid)
93 return err
94}
95
96const getSession = `-- name: GetSession :one
97SELECT uuid, username, email, name, provider, totp_pending, oauth_groups, expiry, created_at, oauth_name, oauth_sub FROM "sessions"

Callers 2

DeleteSessionCookieMethod · 0.80
GetSessionCookieMethod · 0.80

Calls 1

ExecContextMethod · 0.80

Tested by

no test coverage detected