oauth
parent
03bcd07341
commit
047df669c9
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue