filestack / filestack-js

Official Javascript SDK for the Filestack API and content ingestion system.
https://www.filestack.com
MIT License
206 stars 76 forks source link

Use Filestack's picker inside an Electron App #466

Closed cruzlutor closed 2 years ago

cruzlutor commented 2 years ago

We're trying to set up Filestack's file picker into an Electron app, everything works out-of-the-box until the user tries to authenticate a Google Account for Driver or Photos services, it is only happening with Google Auth, other sources are working as expected

Current Behavior

  1. The user clicks the Sign in with Google
  2. Filestack opens a browser window with the google auth page
  3. The user grants access to Filestack
  4. After granting access, the browser window says Authentication successful. Please close this page or go back to continue
  5. When the user focuses on the electron app nothing has changed until the sign up with button is clicked again, ending with a new authentication window open which breaks the user experience

Expected Behavior

After successful authentication, when the user focuses back on the electron app, the Filestack's picker should update the UI showing the source files

Additional Screenshots

https://user-images.githubusercontent.com/1368971/138911310-8626e02b-7481-47ed-884b-e2b660e3eabc.mov

Your Environment