replit-auth

Integrate Replit OpenID Connect with PKCE into a pnpm monorepo.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/YSheldon/Prompt-Log --skill replit-auth-ysheldon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: replit-auth
Source: https://github.com/YSheldon/Prompt-Log/tree/main/.local/skills/replit-auth
Command: npx skills add https://github.com/YSheldon/Prompt-Log --skill replit-auth-ysheldon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Integrate Replit OpenID Connect (PKCE) into a pnpm monorepo (Express API, React+Vite web, and optional Expo React Native) to provide secure, passwordless authentication across platforms.

Core Features & Use Cases

  • OIDC-based login flow with PKCE and cookie-based sessions for web clients
  • Mobile authentication support via Expo with token exchange to the API
  • Server-side routes and middleware for login, callback, and logout, plus a shared user model
  • PostgreSQL-backed session persistence with a unified user profile
  • Web client hook and mobile provider for consuming auth state in apps

Quick Start

Follow these steps to wire Replit Auth into your pnpm monorepo by wiring the API server, web client, and optional mobile app, then run the server and web app.

Frequently Asked Questions about replit-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Replit OpenID Connect with PKCE into an Express and React monorepo?

You implement OpenID Connect with PKCE in a pnpm monorepo by configuring server-side OIDC routes, cookie-based sessions, and a web client hook to secure Express API and React+Vite frontends. It covers login, callback, and logout flows.

What is the best way to handle passwordless authentication across web and mobile deployments?

Passwordless authentication across web and mobile is handled via Replit Auth using OIDC and PKCE. It applies cookie-based sessions for web clients and token exchange for Expo React Native apps, backed by PostgreSQL session persistence.

Can I use Expo React Native with Replit Auth for mobile session handling?

Yes, Expo React Native works with Replit Auth for mobile session handling. The integration includes a mobile provider and token exchange mechanism to authenticate against the Express API, sharing a unified user model with the web client.

Do I need a pnpm monorepo to use Replit Auth for OpenID Connect?

A pnpm monorepo is required to use this Replit Auth integration as designed. The implementation specifically targets a monorepo structure containing an Express API, a React+Vite frontend, and an optional Expo React Native app to share dependencies and user models.

How does PostgreSQL session persistence work with Replit Auth cookie-based sessions?

PostgreSQL session persistence works with Replit Auth by storing unified user profiles and cookie-based sessions in the database. The server-side middleware manages login, callback, and logout routes to maintain secure session state across web clients.