MCPcopy Index your code
hub / github.com/tinyauthapp/tinyauth / GetSession

Method GetSession

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

Source from the content-addressed store, hash-verified

99`
100
101func (q *Queries) GetSession(ctx context.Context, uuid string) (Session, error) {
102 row := q.db.QueryRowContext(ctx, getSession, uuid)
103 var i Session
104 err := row.Scan(
105 &i.UUID,
106 &i.Username,
107 &i.Email,
108 &i.Name,
109 &i.Provider,
110 &i.TotpPending,
111 &i.OAuthGroups,
112 &i.Expiry,
113 &i.CreatedAt,
114 &i.OAuthName,
115 &i.OAuthSub,
116 )
117 return i, err
118}
119
120const updateSession = `-- name: UpdateSession :one
121UPDATE "sessions" SET

Callers 2

RefreshSessionCookieMethod · 0.80
GetSessionCookieMethod · 0.80

Calls 1

QueryRowContextMethod · 0.80

Tested by

no test coverage detected