Skip to content

Instantly share code, notes, and snippets.

@NicholusMuwonge
Created October 24, 2020 15:45
Show Gist options
  • Save NicholusMuwonge/a02e1dc631a271d8fb9459a29fa21682 to your computer and use it in GitHub Desktop.
Save NicholusMuwonge/a02e1dc631a271d8fb9459a29fa21682 to your computer and use it in GitHub Desktop.
namespace :api, defaults: { format: :json } do
namespace :v1 do
mount_devise_token_auth_for 'User', at: 'auth', skip: [:omniauth_callbacks] # add this and overide the omniauth callbacks
post 'social_auth/callback', to: 'social_auth_controller#authenticate_social_auth_user' # this is the line where we add our routes
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment