Fix the oauth creation process and add provider to the serialized hash