Colyseusv0.16
DocumentationRoadmapSponsors
CTRL K
GitHubGitHubDiscordDiscord
CTRL K
  • Overview
  • Introduction
  • Getting Started
    • TypeScript
    • JavaScript
    • React
    • Haxe
    • Unity
    • Defold
    • Construct 3
    • Cocos
    • Discord Activity
  • Tutorials
    • BabylonJS
    • Phaser
      • 1: Basic Player Movement
      • 2: Linear Interpolation
      • 3: Client Predicted Input
      • 4: Fixed Tickrate
    • PlayCanvas
  • API Reference
  • Server API
    • Room API
      • Timing Events
      • Exception Handling
      • Built-In Rooms
        • Lobby Room
        • Relay Room
      • Examples
    • Match-maker API
    • Custom HTTP Routes
    • Presence
    • Driver
    • Transport
      • WebSocket (Default)
      • uWebSockets.js
      • WebTransport
      • Bun WebSockets
    • Logging
    • Development Mode
    • Debugging
    • Graceful Shutdown
  • Client SDK
  • 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
  • Database
  • Tools
    • Load testing
    • Monitoring Panel
    • Playground
    • Unit Testing
  • Deployment
    • Scalability
    • Colyseus Cloud
      • Compute Plans
      • Continuous Deployment
      • DDoS Protection
      • Environment Variables and Secrets
      • "Deploy failed" errors
      • TypeScript/Compilation errors
      • Pricing & Billing
  • More
  • 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