Closed Hatcher19 closed 7 years ago
Would the state
parameter work?
Hi, any update on this issue?
@nigh7m4r3 I had just asked a question 4 days ago...
Also, I don't think current_user
is a thing in omniauth. I thought it was a devise thing.
It looks like the OP might be using Devise incorrectly. I think it needs to be a subclass of Devise::OmniauthCallbacksController
@isaacsanders After I commented, I solved it and I forgot about this. Thank you for being responsive.
The problem was so straightforward! OmniauthCallbacksController
was inheriting from ApplicationController
and there is the problem. It requires authentication. I think @Hatcher19 had the same problem. I changed it to Devise::OmniauthCallbacksController
. Thanks to the state
parameter. I was able to pass user_id
to get it again in the stripe_connect
method.
Thank you
@nigh7m4r3 @Hatcher19 Let me know if there are any further problems. Closing for now.
when the user is coming back from stripe,
@user
is nil. Thus triggering the else in the if statement in my omniauth_callbacks_controller.rb.How do I pass @ user to stripe so I can get it returned?