What is the correct redirect URL for chrome.identity.launchWebAuthFlow? What is the correct redirect URL for chrome.identity.launchWebAuthFlow? dart dart

What is the correct redirect URL for chrome.identity.launchWebAuthFlow?


You can use chrome.identity.getRedirectURL so you don't have to hardcode the redirect URL pattern in your app.


This github auth chrome app sample uses chrome.runtime.id to build the redirect URL:

 var redirectUri = 'https://' + chrome.runtime.id +                  '.chromiumapp.org/provider_cb';

References: