double encoding oauth redirect uri
I'm using @hono/oauth-providers and my redirect URIs get double-encoded in Docker but not locally:
- Docker:
redirect_uri=https%253A%252F%252F...
❌
- Local: redirect_uri=https%3A%2F%2F...
✅
Setup:
- Same Bun 1.2.19 both environments
- Docker container behind nginx proxy
- Double-encoding happens even with curl localhost:4000 on the VPS (bypassing nginx)
What causes this difference?1 Reply
also works iwth NODE_ENV production on local
seems to be related to version 4.8.8 of Hono..
https://github.com/honojs/hono/releases
"fix(utils/url): prevent double encoding in safeEncodeURI by @yusukebe in #4306
"
But this "fix" was what caused the issue with the oauth provider
4.8.5 fixed it