Closed bartes closed 6 years ago
1) this follows same method calls as devise_token_auth gem (https://github.com/codez/devise_token_auth/blob/1c4e1d0a439b3fade123810d1ccbc57e85df3832/app/controllers/devise_token_auth/concerns/set_user_by_token.rb#L79) and sends proper request headers for batch requests like in this not yet accepted PR: https://github.com/lynndylanhurley/devise_token_auth/pull/703 Without that all the issues mentioned in PR above are present in highly async apps
2) additionally this makes sure that updated_at is a string
1) this follows same method calls as devise_token_auth gem (https://github.com/codez/devise_token_auth/blob/1c4e1d0a439b3fade123810d1ccbc57e85df3832/app/controllers/devise_token_auth/concerns/set_user_by_token.rb#L79) and sends proper request headers for batch requests like in this not yet accepted PR: https://github.com/lynndylanhurley/devise_token_auth/pull/703 Without that all the issues mentioned in PR above are present in highly async apps
2) additionally this makes sure that updated_at is a string