oauth

Installation
SKILL.md

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
Google Allowed Rejected Not in their bundled PSL
Apple Rejected Rejected No localhost at all
Microsoft Allowed Allowed Permissive localhost handling
Facebook 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

Related skills
Installs
1.4K
GitHub Stars
9.3K
First Seen
Mar 16, 2026