Skip to content
Snippets Groups Projects
Commit 6d04884b authored by Lucas Eduardo Schoenfelder's avatar Lucas Eduardo Schoenfelder
Browse files

argh

parent 111c4d2a
Branches
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ class LoginContainer extends Component {
<div style={{paddingTop: "20px"}}>
<div style={{marginTop:"0"}}>
{/*<StyledGoogleLoginButton
<StyledGoogleLoginButton
clientId="288460085642-k4veg4fo8kddvjer8b055n9da5qtgha7.apps.googleusercontent.com"
onSuccess={responseGoogle}
onFailure={responseGoogle}
......@@ -98,8 +98,7 @@ class LoginContainer extends Component {
cookiePolicy={'single_host_origin'}
<span style={{textTransform:"none", fontSize:"13px"}}>Usando o Google</span>
</StyledGoogleLoginButton>
>*/}
<MeuBotaoGoogle/>
>
</div>
</div>
......
import React, {useState} from 'react'
import { Button } from '@material-ui/core';
import {StyledGoogleLoginButton} from './LoginContainer'
import axios from 'axios'
import {apiUrl} from '../env';
export default function MeuBotaoGoogle (props) {
const handleAuthentication = () => {
axios.get('https://accounts.google.com/o/oauth2/v2/auth?scope=openid%20profile%20email&redirect_uri=http://api.portalmec.c3sl.ufpr.br/v1/omniauth/google_oauth/callback&reponse_type=code&client_id=288460085642-k4veg4fo8kddvjer8b055n9da5qtgha7.apps.googleusercontent.com').then(
(response) => console.log(response),
(error) => console.log(error),
)
}
return(
<Button onClick={handleAuthentication}>Entrar com o Google</Button>
)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment