1 2 3 4 5 6 7 8
select i.identity_public_id , s.created_at , s.expired_at , s.revoked_at from secd.session s join secd.identity i using (identity_id) where secret_hash = $1;