OAuth callbacks
OAuth providers want a single, pre-registered redirect URI. A changing
localhost:<port> is awkward to register and breaks when the port moves.
routeup gives you a stable URL to register once.
Local-only providers
Section titled “Local-only providers”Many providers accept an HTTPS localhost redirect. For those, a local route is
enough, no server or token needed:
routeup serve example-app --port 3000Register:
https://example-app.localhost/oauth/callbackBecause routeup serves trusted HTTPS on *.localhost, secure cookies and
https-only SDKs exercise production-like secure-origin behavior locally.
Providers that require a public URL
Section titled “Providers that require a public URL”Some providers reject localhost or need to reach you directly. Expose the route
and register the public URL. Configure public exposure first using
Exposing publicly. This example assumes your saved token allows
*.mukul.routeup.dev:
routeup serve example-app --port 3000 --exposehttps://example-app.mukul.routeup.dev/oauth/callbackWhy the stable name matters
Section titled “Why the stable name matters”The route name and token namespace do not depend on the underlying dev port, so you can request the same redirect URI on each run. Public claims remain subject to the server’s normal conflict rules. See Routes.