nocmt / ewelink-api-next

CoolKit v2 API Official Library
MIT License
19 stars 4 forks source link

After "Oauth And Log In" open redirectUrl dynamically "window.open()" #18

Closed AndrazPustotnik closed 2 months ago

AndrazPustotnik commented 8 months ago

It would make the oauth process much cleaner and smoother if the redirectUrl would be opened dynamically "window.open()", because then it can be dynamically closed from my side after fetching the query data.

image

nocmt commented 8 months ago

The positioning of ewelink-api-next is a library file, and it should not do business work. For example, I used to store information after logging in, but it should be up to the user to decide how to store it.

But I can https://github.com/nocmt/eWeLinkOAuthLoginDemo Add this step to this project and consider adding an action to automatically close the window at the final actual destination address.