I want to change omniauth callback url dynamically. but I don't know how to change dynamically.
I hope change when put path on view, not config loaded.
like this
- if @is_android
- callback_path = omniauth_authorize_path(resource_name, "facebook", callback_path: "/resource/auth/facebook/callback/android")
- else
- callback_path = omniauth_authorize_path(resource_name, "facebook")
= link_to "sign up with facebook", fb_auth_path
thanks