Optimistic lock: only update the row if the refresh token in the database still matches the one we read before attempting the refresh. This prevents a concurrent caller that lost a token-refresh race from overwriting a valid token stored by the winner.
(ctx context.Context, arg UpdateExternalAuthLinkRefreshTokenParams)
| 1258 | // a concurrent caller that lost a token-refresh race from overwriting a valid |
| 1259 | // token stored by the winner. |
| 1260 | UpdateExternalAuthLinkRefreshToken(ctx context.Context, arg UpdateExternalAuthLinkRefreshTokenParams) error |
| 1261 | UpdateGitSSHKey(ctx context.Context, arg UpdateGitSSHKeyParams) (GitSSHKey, error) |
| 1262 | UpdateGroupByID(ctx context.Context, arg UpdateGroupByIDParams) (Group, error) |
| 1263 | UpdateInactiveUsersToDormant(ctx context.Context, arg UpdateInactiveUsersToDormantParams) ([]UpdateInactiveUsersToDormantRow, error) |
no outgoing calls