Skip to content

Cannot use identity.getRedirectURL() #15

@kkoscielniak

Description

@kkoscielniak

Hello @KeithHenry,

I'm trying to use chrome-extension-async in order to develop an extension which will use an OAuth login.

When trying to:

const getRedirectUrl = async() => {
  const url = await chrome.identity.getRedirectURL();
  return url;
}; 

I get this uncaught error:

Error: Invocation of form identity.getRedirectURL(function) doesn't match definition identity.getRedirectURL(optional string path)

Can you fix that?


Also, some workaround I've found for the future:

  1. Remove chrome-extension-async temporarily
  2. Invoke chrome.identity.getRedirectURL() in devtools console

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions