What problem does it solve?
Local OAuth flows often fail because providers reject .localhost subdomains or require publicly valid redirect URIs, causing errors like redirect_uri_mismatch or invalid redirect; this Skill explains how to use portless with a real TLD and correct environment/provider settings so callbacks succeed during local development.
Core Features & Use Cases
- Provider compatibility: Steps for Google, Apple, Microsoft (Azure AD), Facebook, and GitHub to register portless-based redirect URIs.
- Portless configuration: Guidance on choosing a public-suffix TLD, running a trusted local proxy with HTTPS, and avoiding .localhost pitfalls.
- Env and library fixes: Concrete checks and environment variables to update (NEXTAUTH_URL, PORTLESS_URL, callbackURL) and troubleshooting for HSTS and Apple-specific public resolution requirements.
- Use case: Enable sign-in flows for a Next.js app using NextAuth during local development without provider rejections.
Quick Start
Start a portless proxy with a valid public TLD and update your application's callback URLs and NEXTAUTH_URL to match the resulting https://myapp.dev so the registered provider redirect URIs align.