migrating to oauth as the oauth lib