Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@chengtie

Description

@chengtie

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions