mirror of
https://codeberg.org/readeck/browser-extension.git
synced 2026-06-07 11:27:32 +00:00
The current flow is quite complex and relies on listeners that can be conflicting with other extensions. This is a much simpler approach: - the OAuth redirection is a real, web accessible, resource - the redirection page sends a message to the extension with its query parameters - the oauthPrompt function listens to the message and resolves with the authorization result And that's it! This adds the oauth-callback.html page to "web_accessible_resources" for any http or https URL. Incidentally, this resolves #93