This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { GoogleAPI, GoogleLogin, GoogleLogout } from "react-google-oauth"; | |
import FacebookLogin from 'react-facebook-login'; | |
function App() { | |
return ( | |
<div className="App"> | |
<div className="App-header"> | |
OlderNewer