If I use the modules :registrable and :omniauthable, I'm not clear whether I can do the following. If not, how can I?
My application allows users to both signup/register and signin through oauth and devise.
My Oauth provider gives everyone a unique user_id. I would need to store that user_id in my Devise User record.
When a User who has registered signs in, Devise should check after Oauth athentication, whether the user_id exists.
Ideally -- it seems that the user shouldn't need to select sign in versus sign up: if the user_id from the provider doesn't exist, it should take the user through the New User registration process after Oauth authentiction.
Can someone show me an example of this type of signin/registration using Devise and Oauth (I assume via Omniauthable).