-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
IndexError: string not matched on User sign_in #681
Comments
I found the fix in #121 - I need to set the token to
|
@JackWCollins help to me! I'm use Postgresql and I have go to my row on db for setting to nil, e.j.
Also I've changed my seed file, here it is. I've attempt put your solution on my migration file but not working for me. Here my file "db/migrate/20170321204000_devise_token_auth_create_users.rb". `class DeviseTokenAuthCreateUsers < ActiveRecord::Migration[5.0]
end |
@JackWCollins Why would you create a migration that sets defaults for provider and uid and then in the same migration specify that provider and uid must in combination be unique? Oauth is optional in most systems and therefore both those values will often be populated with the same defaults in your case. |
I'm trying to sign in an existing user, but I'm hitting an
IndexError: string not matched
in thesessions_controller
.The relevant code from
sessions_controller
is:I've added
devise_token_auth
(version 0.1.38) to an existing project so it's very possible that I've created bad data in thetokens
column. I've tried various ways of defaultingtoken
json into my user including mimicking the code in thesessions_controller
.I've seen a mention of this in #101, but that didn't have a specific resolution. Any ideas?
The text was updated successfully, but these errors were encountered: