videah / SkyBridge

A work in progress bridge/proxy that lets you use Mastodon apps with Bluesky

Home Page:https://skybridge.fly.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OAuth redirect lowercases URI host

twnlink opened this issue · comments

When opening the network tab in Chrome devtools, I noticed that when SkyBridge attempts to do an OAuth redirect it lowercases the URI host, which appears to cause Mammoth (and possibly other Mastodon clients) to fail to add Bsky accounts:

Network tab:
image

redirect_uri in SkyBridge:
image

This appears to be because Uri.toString automatically lowercases everything after the protocol:// (probably making the assumption that it should be a domain, since domains are case-insensitive)