replit-auth

Implement Replit OpenID Connect with PKCE authentication across Express, React+Vite, and Expo React Native.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Integrate Replit Auth (OpenID Connect with PKCE) into a pnpm monorepo with Express, React+Vite, and Expo React Native, covering auth routes, middleware, web client hook, mobile auth, database schema, and session management. Use when the user asks to add authentication, login, sign-in, or user accounts, and explicitly requests to use Replit Auth, Replit SSO, or sign-in with Replit.

Core Features & Use Cases

  • Web and mobile authentication flows using Replit's OIDC PKCE mechanism.
  • Server-side session management, user upsert, and secure cookies.
  • Shared project scaffolding for web and mobile clients and optional Expo integration.

Quick Start

Configure Replit Auth in your project by wiring OIDC config, routes, and client hooks for web and mobile authentication.

Frequently Asked Questions about replit-auth

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

FAQPage Schema
How do I add Replit OIDC authentication to an Express and React monorepo?

Replit OIDC authentication is integrated into a pnpm monorepo by wiring OpenID Connect configuration, auth routes, middleware, and a web client hook. This setup manages server-side sessions, user upserts, and secure cookies for web applications.

Can I use Replit Auth for login flows in a mobile app?

Yes, Replit Auth supports mobile login flows using Expo React Native. It applies the OpenID Connect PKCE mechanism to authenticate users and manage login state across web and mobile clients within a shared monorepo.

How does session management work with Replit OpenID Connect?

Session management with Replit OpenID Connect uses PostgreSQL-backed sessions to maintain user login state. It relies on secure cookies and server-side middleware to persist authentication data across web and mobile clients.

Do I need PostgreSQL to handle user upserts during Replit SSO?

Yes, PostgreSQL is required to handle user upserts and session management during Replit SSO. The authentication process stores OpenID Connect session data and user records in a PostgreSQL database.

What is the best way to implement PKCE for OpenID Connect in a Vite and Express app?

Implementing PKCE for OpenID Connect in a Vite and Express app is handled by configuring Replit Auth routes and client hooks. This mechanism secures authorization code exchanges between the React client and Express server.

Does Replit Auth work with Expo React Native for secure sign-in?

Yes, Replit Auth works with Expo React Native for secure sign-in. It applies the OpenID Connect PKCE flow to manage authentication routes and login state specifically for mobile clients.