Fix error with OAuth providers

The previous version contained an error that prevented OAuth login
to work unless all three OAuth providers were enabled.