19 CASE WHEN :lifespanSeconds IS NULL THEN NULL ELSE :created + :lifespanSeconds END,
21 CASE WHEN :refreshLifespanSeconds IS NULL THEN NULL ELSE :created + :refreshLifespanSeconds END,
22 :refreshLifespanSeconds
23 FROM profile p
INNER JOIN authentication a
USING (identifier_id
)
24 WHERE p.profile
= :profile AND a.identifier
= :identifier
25 ON CONFLICT (code_id
) DO UPDATE