I have a Spree application with the ability to login with Facebook and other social networks , but my problem is that i can't associate user with orders in login , i've tried associate_user! like my following sample but the cart is always empty .
here's my code in omniauthcallback
if current_order
current_user = spree_current_user || @user
current_order.associate_user!(current_user)
session[:guest_token] = nil
end
I Figured out that it's a bug in Spree_auth_devise and it has been solved in version 3.2.0.beta which will be out soon , the problem was in Wardan.rb
You need to remove this part from the code above
email: user.email