replit-auth

Integrate Replit OpenID Connect authentication across a pnpm monorepo.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/Soufianouassif/Web3-Presale-Platform --skill replit-auth-soufianouassif
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: replit-auth
Source: https://github.com/Soufianouassif/Web3-Presale-Platform/tree/main/.local/skills/replit-auth
Command: npx skills add https://github.com/Soufianouassif/Web3-Presale-Platform --skill replit-auth-soufianouassif

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Integrates Replit's OpenID Connect authentication into a pnpm monorepo (Express API, React+Vite web, and optional Expo mobile) to provide secure PKCE-based login, session management, and user provisioning without custom login UIs.

Core Features & Use Cases

  • OIDC with PKCE support for web and mobile
  • Server routes and middleware for login, callback, logout, and mobile token exchange
  • Client hooks and web/mobile integration guidance
  • Database schema for user and session storage
  • Real-world scenario: onboarding teams across multiple apps with a single, unified authentication flow.

Quick Start

Configure your monorepo to enable Replit Auth by wiring the server, web, and mobile components and then navigate to the login flow to authenticate.

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 authentication into a pnpm monorepo?

Replit OpenID Connect integration in a pnpm monorepo wires Express API, React web, and Expo mobile components to enable secure PKCE-based login and session management without custom login UIs.

Can I use Replit OIDC for both web and mobile authentication flows?

Yes, Replit OIDC integration supports both web and mobile authentication flows. It applies PKCE handling and dedicated mobile token exchange routes alongside standard web login and callback workflows.

How does PKCE handling work with Replit authentication?

PKCE handling secures the authentication flow by requiring a code verifier and challenge during the token exchange, which protects against interception across web and mobile OpenID Connect sessions.

Do I need PostgreSQL to manage Replit authentication sessions?

Yes, PostgreSQL session storage is required. The integration includes a database schema for user and session storage to maintain authenticated states across your monorepo applications.

What's the best way to set up Express middleware for Replit Auth?

The integration provides dedicated Express middleware and server routes for login, callback, logout, and mobile token exchange to establish a complete OpenID Connect authentication workflow.

Does Replit Auth work without building a custom login UI?

Yes, it handles user provisioning and login without custom login UIs by redirecting users to Replit's OpenID Connect provider and managing the authenticated session upon callback.