microsoft / microsoft/MicrosoftEdge-Extensions

[FeatureReq - API] Add support for identity.getAuthToken()

Open
#167 9 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

Feature Partner Center Tracked
Dominant language
JavaScript
Stars
245
Forks
149
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.

This is more a feature enhancement than a problem, but the end result is still problematic. My extension allows users to connect to their Google account to save data to Google Sheets. Currently, Edge only supports identity.launchWebAuthFlow(), but the user experience is not good -- users are forced to reconnect their Google account every hour to retrieve a new access token because access tokens expire after an hour.

Is there a solution where the user doesn't have to go through identity.launchWebAuthFlow() every hour to get a new access token?

Describe the solution you'd like

I'd like to see support for identity.getAuthToken() like in Chrome, which handles token refreshes automatically.

If this is not possible, then another solution would be to allow non-interactive flows (interactive: false) because right now identity.launchWebAuthFlow() forces the user to go through the OAuth popup every hour (only interactive: true is accepted).

Describe alternatives you've considered

I couldn't find any reliable solution that would work with extensions.

Additional context

I'm using Edge 126.0.2592.68 (Official build) (64-bit) in Windows 10.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.