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

Method UpdateSession

internal/repository/session_queries.sql.go:148–176  ·  view source on GitHub ↗
(ctx context.Context, arg UpdateSessionParams)

Source from the content-addressed store, hash-verified

146}
147
148func (q *Queries) UpdateSession(ctx context.Context, arg UpdateSessionParams) (Session, error) {
149 row := q.db.QueryRowContext(ctx, updateSession,
150 arg.Username,
151 arg.Email,
152 arg.Name,
153 arg.Provider,
154 arg.TotpPending,
155 arg.OAuthGroups,
156 arg.Expiry,
157 arg.OAuthName,
158 arg.OAuthSub,
159 arg.UUID,
160 )
161 var i Session
162 err := row.Scan(
163 &i.UUID,
164 &i.Username,
165 &i.Email,
166 &i.Name,
167 &i.Provider,
168 &i.TotpPending,
169 &i.OAuthGroups,
170 &i.Expiry,
171 &i.CreatedAt,
172 &i.OAuthName,
173 &i.OAuthSub,
174 )
175 return i, err
176}

Callers 1

RefreshSessionCookieMethod · 0.80

Calls 1

QueryRowContextMethod · 0.80

Tested by

no test coverage detected