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

oh

parent 6d04884b
Branches
No related tags found
No related merge requests found
......@@ -37,7 +37,9 @@ const responseGoogle = (response) => {
(error) => {console.log(error)}
)
}
const handleGoogle = () => {
axios.get('https://api.portalmec.c3sl.ufpr.br/v1/omniauth/google_oauth2?auth_origin_url=https://api.portalmec.c3sl.ufpr.br/v1/auth/google_auth2&omniauth_window_type=sameWindow&resource_class=User').then((res) => {console.log(res)}, (err) => {console.log(err)})
}
class LoginContainer extends Component {
constructor (props) {
super(props);
......@@ -90,15 +92,15 @@ class LoginContainer extends Component {
<div style={{paddingTop: "20px"}}>
<div style={{marginTop:"0"}}>
<StyledGoogleLoginButton
{/*<StyledGoogleLoginButton
clientId="288460085642-k4veg4fo8kddvjer8b055n9da5qtgha7.apps.googleusercontent.com"
onSuccess={responseGoogle}
onFailure={responseGoogle}
login={"reponseType" : 'code'}
cookiePolicy={'single_host_origin'}
<span style={{textTransform:"none", fontSize:"13px"}}>Usando o Google</span>
</StyledGoogleLoginButton>
>
<span style={{textTransform:"none", fontSize:"13px"}}>Usando o Google</span>
</StyledGoogleLoginButton>*/}
<Button onClick={handleGoogle}>login com google</Button>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment