nocmt / ewelink-api-next

CoolKit v2 API Official Library
MIT License
22 stars 5 forks source link

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

Closed AndrazPustotnik closed 4 months ago

AndrazPustotnik commented 11 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 10 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.