{"action":"created","issue":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/300","labels_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/300/labels{/name}","comments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/300/comments","events_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/300/events","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/300","id":94382651,"number":300,"title":"HI, This is more of a doubt since I could not finding anything related to this in your documentation.","user":{"login":"sonuoommen","id":5094306,"avatar_url":"https://avatars.githubusercontent.com/u/5094306?v=3","gravatar_id":"","url":"https://api.github.com/users/sonuoommen","html_url":"https://github.com/sonuoommen","followers_url":"https://api.github.com/users/sonuoommen/followers","following_url":"https://api.github.com/users/sonuoommen/following{/other_user}","gists_url":"https://api.github.com/users/sonuoommen/gists{/gist_id}","starred_url":"https://api.github.com/users/sonuoommen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonuoommen/subscriptions","organizations_url":"https://api.github.com/users/sonuoommen/orgs","repos_url":"https://api.github.com/users/sonuoommen/repos","events_url":"https://api.github.com/users/sonuoommen/events{/privacy}","received_events_url":"https://api.github.com/users/sonuoommen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-10T20:12:11Z","updated_at":"2015-07-29T19:34:04Z","closed_at":"2015-07-29T19:34:04Z","body":"In devise it is configurable to use email or mobile_number or username as we wish with password for authentication or sign in.\r\n   Is it possible with this gem ?. Can I use mobile_numer instead of email ?\r\nI am getting this error  \"undefined method `provider' for #<User:\" which I can see from code is hardcoded to be email."},"comment":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/comments/126069153","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/300#issuecomment-126069153","issue_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/300","id":126069153,"user":{"login":"booleanbetrayal","id":981825,"avatar_url":"https://avatars.githubusercontent.com/u/981825?v=3","gravatar_id":"","url":"https://api.github.com/users/booleanbetrayal","html_url":"https://github.com/booleanbetrayal","followers_url":"https://api.github.com/users/booleanbetrayal/followers","following_url":"https://api.github.com/users/booleanbetrayal/following{/other_user}","gists_url":"https://api.github.com/users/booleanbetrayal/gists{/gist_id}","starred_url":"https://api.github.com/users/booleanbetrayal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/booleanbetrayal/subscriptions","organizations_url":"https://api.github.com/users/booleanbetrayal/orgs","repos_url":"https://api.github.com/users/booleanbetrayal/repos","events_url":"https://api.github.com/users/booleanbetrayal/events{/privacy}","received_events_url":"https://api.github.com/users/booleanbetrayal/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T19:34:04Z","updated_at":"2015-07-29T19:34:04Z","body":"`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!"}}