Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HI, This is more of a doubt since I could not finding anything related to this in your documentation. #300

Closed
sonuoommen opened this issue Jul 10, 2015 · 1 comment

Comments

@sonuoommen
Copy link

In devise it is configurable to use email or mobile_number or username as we wish with password for authentication or sign in.
Is it possible with this gem ?. Can I use mobile_numer instead of email ?
I am getting this error "undefined method `provider' for #<User:" which I can see from code is hardcoded to be email.

@booleanbetrayal
Copy link
Collaborator

provider refers to the mechanism used to distinguish the user (email, facebook, github, etc), where uid is the globally unique value for that provider. In theory, you could add support for any provider you'd like, but this is not a particular provider option that devise_token_auth supports out of the box. Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants