Skip to content
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

Cross-storage does not work in an Excel add-in #60

Open
chengtie opened this issue Apr 2, 2023 · 0 comments
Open

Cross-storage does not work in an Excel add-in #60

chengtie opened this issue Apr 2, 2023 · 0 comments

Comments

@chengtie
Copy link

chengtie commented Apr 2, 2023

I have been using cross-storage for a while for an Excel add-in. It works for almost all the tasks except one odd problem. To reproduce the problem:

  • Sign in with third-party authentication such as Google. A dialog is opened by Office.context.ui.displayDialogAsync. The sign-in works and the dialog is closed.
  • Then I try to sign out, which cannot work, and I can see the following message in console.
    Screenshot 2023-04-02 at 19 11 32
  • If I reload the add-in, I can still see the signed-in user on the top right. Then I sign out, this time the sign-out can work.

I try to debug the problem:

  • If I modify const storage = new CrossStorageClient("https://www.funfun.io/htmls/hub.html", {}); to const storage = new CrossStorageClient("https://www.funfun.io/htmls/hub.html", { 100000 }); in the code, the sign-out (without reloading the page) will go infinite.
  • The url of the add-in is https://v6.10studio.tech/#/ai-formula-editor-addin, which we can launch in a browser as well. We can sign in with Google and sign out without this problem.

Does anyone know what may be the cause of the problem in the Excel add-in?

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

1 participant