You are invited to join the 🎄 Colyseus Holyjam 2025 🎁
Colyseusv0.16
DocumentationRoadmapSponsors
CTRL K
GitHubGitHubDiscordDiscord
CTRL K
  • Overview
  • Introduction
  • Getting Started
    • TypeScript TypeScript
    • JavaScript JavaScript
    • React React
    • Unity Unity
    • Defold Engine Defold
    • Construct 3 Construct 3
    • Cocos Creator Cocos Creator
    • Haxe Haxe
    • Discord Discord Activity
    • WeChat WeChat
  • Tutorials
    • BabylonJS
    • Phaser
      • 1: Basic Player Movement
      • 2: Linear Interpolation
      • 3: Client Predicted Input
      • 4: Fixed Tickrate
    • PlayCanvas
  • API Reference
  • Client SDK
  • Server
    • HTTP Routes
    • Match-maker API
    • Presence
    • Driver
    • Transport
      • WebSocket (Default)
      • uWebSockets.js
      • WebTransport
      • Bun WebSockets
    • Logging
    • Development Mode
    • Debugging
    • Graceful Shutdown
  • Rooms
    • Timing Events
    • Exception Handling
    • Built-In Rooms
      • Lobby Room
      • Relay Room
    • Examples
  • State Synchronization
    • Schema Definition
    • State View
    • Client-side Callbacks
      • React
      • Advanced: Implement Your Own Callback System
    • Advanced Usage
    • Best Practices
  • Authentication
    • Room Authentication
    • HTTP Middleware
    • Auth Module
  • Tools
    • Load testing
    • Monitoring Panel
    • Playground
    • Unit Testing
  • Deployment
    • Scalability
    • Colyseus Cloud
      • Compute Plans
      • Private NPM Registry
      • Continuous Deployment
      • DDoS Protection
      • Environment Variables and Secrets
      • "Deploy failed" errors
      • TypeScript/Compilation errors
      • Pricing & Billing
  • More
  • Database
  • Payments
    • Xsolla Xsolla
  • Recipes
    • Custom CORS Headers
    • Custom Room ID
    • Deny a Player Joining a Room
    • Password Protect Room
    • Setup Server from Scratch with TypeScript
  • Example Projects
    • Defold Engine
    • Discord Activity
    • KAPLAY
    • PixiJS
      • MMO Demo
      • Shooting Gallery Demo
      • Starboss Demo
      • Turn Based Tanks Demo
      • MMO Demo
      • Hide and Seek Tech Demo
    • Decentraland
  • Extra
  • Recommendations
    • Command Pattern
    • 3rd Party Packages
  • Community
    • Help us improve this page!
    • 0.16
    • 0.15
  • FAQ

Question? Give us feedback →Edit this page
Sponsors
Authentication

Authentication

Authentication is the process of verifying the identity of a user. Colyseus provides built-in tools to help you authenticate your clients into your application.

You may bring your own token validation logic, or use Auth Module to manage the authentication flow.

Room onAuthHTTP MiddlewareAuth Module
Last updated on December 7, 2024
Best PracticesRoom Authentication

2025 © Endel Dreyer