
Oauth
vercel-labs/portlessOfficial
Configuration guide for OAuth providers to accept portless local dev URLs on valid TLDs.
- skills.sh installs
- 3.1K
- GitHub stars
- 12.9K
- last updated
- Aug 21, 2026
What it does
- Covers provider setup for Google, Apple, Microsoft, Facebook, and GitHub, including the redirect URIs and origins to register
- Explains why
.localhostsubdomains fail on strict providers and how--tldwith a Public Suffix List domain fixes it - Includes auth library settings for NextAuth/Auth.js, Passport.js, and a generic
PORTLESS_URLpattern - Designed for developers hitting redirect_uri_mismatch or sign-in failures when running apps locally under portless
Install
$ npx -y skills add vercel-labs/portless --skill oauth -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
OAuth with Portless
OAuth providers validate redirect URIs against domain rules. .localhost subdomains fail on most providers because they are not in the Public Suffix List or are explicitly blocked. Portless fixes this with --tld to serve apps on real, valid domains.
The Problem
When portless uses the default .localhost TLD, OAuth providers reject redirect URIs like http://myapp.localhost:1355/callback:
| Provider | localhost | .localhost subdomains | Reason |
|---|---|---|---|
| Allowed | Rejected | Not in their bundled PSL | |
| Apple | Rejected | Rejected | No localhost at all |
| Microsoft | Allowed | Allowed | Permissive localhost handling |
| Allowed | Varies | Must register each URI exactly | |
| GitHub | Allowed | Allowed | Permissive |
Google and Apple are the strictest. Microsoft and GitHub are more lenient with localhost.
The Fix
Details
- Repository
- github.com/vercel-labs/portless
- Categories
- Backend & APIs, Technical Documentation, DevOps & Cloud
- First seen
- May 16, 2026
More from vercel-labs/portless
All 2Similar to Oauth
More Backend & APIs
portlessSkillvercel-labs/portless6.2K installsLocal dev server names with a .localhost proxy that replaces port-number URLs for people and agents alike.
integration-connectivity-connected-app-configureSkillforcedotcom/sf-skills5.6K installsSalesforce OAuth setup skill covering Connected Apps and External Client Apps, with decision guidance and hardening checks.
tunnlPluginklipitkas/tunnl.gg692 starsGive a local dev server a public HTTPS URL with tunnl.gg: webhooks, OAuth callbacks, previews and phone testing, with nothing to install
auth-setupSkillbutterbase-ai/butterbase-skills536 starsSetup reference for end-user auth on Butterbase: OAuth providers, JWT lifetimes, post-login hooks, and service keys.
nextauth-authenticationSkillmindrally/skills1.2K installsSetup guide for NextAuth.js v5 in Next.js covering providers, JWT and database sessions, and route protection.