oauth
parent
03bcd07341
commit
047df669c9
|
@ -8,6 +8,8 @@ export default function StoreCalendar() {
|
|||
const { t } = useTranslation();
|
||||
|
||||
useEffect(() => {
|
||||
console.log("hello", Constants.GOOGLE_CLIENT_ID);
|
||||
|
||||
hello.init(
|
||||
{
|
||||
google: Constants.GOOGLE_CLIENT_ID,
|
||||
|
@ -32,14 +34,7 @@ export default function StoreCalendar() {
|
|||
<Button
|
||||
onClick={() => {
|
||||
hello("google")
|
||||
.login(
|
||||
{
|
||||
scope: "https://www.googleapis.com/auth/calendar",
|
||||
},
|
||||
(e) => {
|
||||
console.log("login error", e);
|
||||
}
|
||||
)
|
||||
.login()
|
||||
.then(
|
||||
() => {
|
||||
console.log("Login successful");
|
||||
|
|
Loading…
Reference in New Issue