Skip to content

handleAuthClick() always returns undefined #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
M1ck0 opened this issue Jul 6, 2022 · 5 comments
Open

handleAuthClick() always returns undefined #86

M1ck0 opened this issue Jul 6, 2022 · 5 comments

Comments

@M1ck0
Copy link

M1ck0 commented Jul 6, 2022

In docs, it says that handleAuthClick() returns a promise, but it does not. I need this so that after the user approves permission for the calendar, I can load all the events. Without it, I can't know if permission is granted or not.

@noblessem
Copy link

In docs, it says that handleAuthClick() returns a promise, but it does not. I need this so that after the user approves permission for the calendar, I can load all the events. Without it, I can't know if permission is granted or not.

Hey bro, how u resolved this issues,cause if i getting it right handleAuthClick is not a promise anymore and i cant await for it

@Kubessandra
Copy link
Owner

Kubessandra commented Jul 19, 2022

If I'm not wrong, handleAuthClick() is now synchrone, so you don't have the need to await it anymore, if not we can make a PR to make it as a promise and return.

@M1ck0
Copy link
Author

M1ck0 commented Jul 19, 2022

Hey bro, how u resolved this issues,cause if i getting it right handleAuthClick is not a promise anymore and i cant await for it

No I did not. I decided to use Google's API for this task as I needed some features that this package did not have.

If I'm not wrong, handleAuthClick() is now synchrone, so you don't have the need to await it anymore, if not we can make a PR to make it as a promise and return.

I need to await it but it does not return anything. I also tried without await, still nothing.

@noblessem
Copy link

If I'm not wrong, handleAuthClick() is now synchrone, so you don't have the need to await it anymore, if not we can make a PR to make it as a promise and return.

I understand, but i have a case, when i click on "Create Event", but while user trying to choose his account, other method createEvent trying to work and it is faileng cause it is no gapi, if i am getting it right. So i think it will be better to return smth in case, while user choose his account and then call other methods

|

@noblessem
Copy link

i am trying to modify somehow handleAuth method, but it is not seems to work properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants