master
alex 2024-01-14 11:12:52 +01:00
parent 03bcd07341
commit 047df669c9
1 changed files with 3 additions and 8 deletions

View File

@ -8,6 +8,8 @@ export default function StoreCalendar() {
const { t } = useTranslation(); const { t } = useTranslation();
useEffect(() => { useEffect(() => {
console.log("hello", Constants.GOOGLE_CLIENT_ID);
hello.init( hello.init(
{ {
google: Constants.GOOGLE_CLIENT_ID, google: Constants.GOOGLE_CLIENT_ID,
@ -32,14 +34,7 @@ export default function StoreCalendar() {
<Button <Button
onClick={() => { onClick={() => {
hello("google") hello("google")
.login( .login()
{
scope: "https://www.googleapis.com/auth/calendar",
},
(e) => {
console.log("login error", e);
}
)
.then( .then(
() => { () => {
console.log("Login successful"); console.log("Login successful");