import React from 'react' import { useGoogleLogin } from 'react-use-googlelogin' const GoogleAuthContext = React.createContext() export const GoogleAuthProvider = ({ children }) => { const googleAuth = useGoogleLogin({ clientId: process.env.Google_Client_ID, }) return ( <GoogleAuthContext.Provider value={googleAuth}> {children} </GoogleAuthContext.Provider> ) } export const useGoogleAuth = () => React.useContext(GoogleAuthContext);
Quote:Unexpected token, expected "," (8:25)
Quote:Unexpected token, expected ":" (8:37)
const googleAuth = useGoogleLogin({ clientId:process.env.658977310896-knrl3gka66fldh83dao2rhgbblmd4un9.apps.googleusercontent.com, })
658977310896-knrl3gka66fldh83dao2rhgbblmd4un9
(process.env.658977310896) - (knrl3gka66fldh83dao2rhgbblmd4un9.apps.googleusercontent.com)
clientId:process.env["658977310896-knrl3gka66fldh83dao2rhgbblmd4un9.apps.googleusercontent.com"],
env
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)