arena-oauth
OAuth handler for Are.na, hosted on Cloudflare Workers.
How it works
GET /authorizeredirects toare.na/oauth/authorize.- Are.na redirects back to
GET /callback?code=…. - The callback exchanges the code at
api.are.na/v3/oauth/token. -
The token is handed off in this order:
- JS bridge:
window.webkit.messageHandlers.arenaToken.postMessage(token) - Opener:
window.opener.postMessage({ source: "arena-oauth", token }, "*") - Displayed on the page for manual copy.
- JS bridge: