insert into secd.session (
       identity_id
       , token_hash
       , created_at
       , expired_at
       , revoked_at
) values (
  (select identity_id from secd.identity where identity_public_id = $1)
  , $2, $3, $4, $5
);
