MCPcopy Create free account
hub / github.com/rilldata/rill / DeleteUserAuthToken

Method DeleteUserAuthToken

admin/database/postgres/postgres.go:1243–1246  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

1241}
1242
1243func (c *connection) DeleteUserAuthToken(ctx context.Context, id string) error {
1244 res, err := c.getDB(ctx).ExecContext(ctx, "DELETE FROM user_auth_tokens WHERE id=$1", id)
1245 return checkDeleteRow("auth token", res, err)
1246}
1247
1248func (c *connection) DeleteAllUserAuthTokens(ctx context.Context, userID string) (int, error) {
1249 qry := "DELETE FROM user_auth_tokens WHERE user_id=$1"

Callers

nothing calls this directly

Calls 3

getDBMethod · 0.95
checkDeleteRowFunction · 0.85
ExecContextMethod · 0.45

Tested by

no test coverage detected