cast oauth uid to string for postgres compatibility