rotate_refresh_token(p_old_token_hash text, p_new_expires_at timestamp without time zone, p_new_raw_token text)


Description

Atomically rotates a refresh token by marking old token as replaced and creating a new one. Ensures race condition safety.

Parameters

Name Type Mode
p_old_token_hash text IN
p_new_expires_at timestamp without time zone IN
p_new_raw_token text IN

Definition