here is the reference to stackoverflow
http://stackoverflow.com/questions/37887389/devise-auth-sign-in-api-not-returning-access-token-and-client

I am not able to receive the access token and client in auth/sign_in api
given by devise_token_auth gem

My app was working properly before integrating the omniauth gem. The
issue started coming after integrating the omniauth gem.

session_store.rb


Rails.application.config.session_store :active_record_store, key:
'_my-app_session'

Application controller.rb

class ApplicationController < ActionController::Base
   include DeviseTokenAuth::Concerns::SetUserByToken
   layout false
   before_filter :configure_permitted_parameters, if: :devise_controller?
   before_filter :load_client
   protect_from_forgery with: :null_session, if: Proc.new { |c|
c.request.format == 'application/json' }
   skip_before_filter :verify_authenticity_token, :if => Proc.new { |c|
c.request.format == 'application/json' }
   helper_method :current_user

devise_token_auth version 0.1.30
rails version 4.1.8

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5a3667099ff76273bce0c608cafdec8b%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJun 18, '16 at 10:27a
activeJun 18, '16 at 10:27a
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Rohan Jain: 1 post

People

Translate

site design / logo © 2021 Grokbase