Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
code example for omniauth routes.
namespace :api, defaults: {format: 'json'} do
namespace :v1 do
devise_for :users
get '/auth/:provider/callback', to: 'oauth#create'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment