mirror of
https://codeberg.org/readeck/browser-extension.git
synced 2026-05-08 11:22:27 +00:00
11f411c8fa
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