Open Gamechanger-coder opened 2 years ago
how you add the google login ?
Thats my Google Log In
then same problem with me.... I also check my database, it didnt have the user. I think need add sth else to the auth or the api to capture the info from google and add them into our database...
google auth has a new api now. it's called the google identity services. I made a video on how to use it here https://youtu.be/TqlVP_IkS28
My GoogleLogin is successfully but i cant take the data to the Navbar. Need help?
My Code:
_import React, { useState, useEffect} from 'react'; import {AppBar, Typography, Avatar, Toolbar, Button } from '@material-ui/core'; import { Link } from 'react-router-dom';
import useStyles from './styles.js'; import memories from '../../images/memories.png';
const Navbar = () => { const classes = useStyles(); const [user, setUser] = useState(JSON.parse(localStorage.getItem('profile'))); //profile //const user = null; console.log(user);