Skip to content

Instantly share code, notes, and snippets.

View aj-doge's full-sized avatar

Allan Jeremy | Doge aj-doge

  • 08:04 (UTC +03:00)
View GitHub Profile
@aj-doge
aj-doge / fastjs-example.ts
Created November 7, 2025 20:00
FastJS Example on how to implement PlaySafe Custom Auth
/**
* Custom Authentication Examples - Fastify
*
* This file contains example Fastify endpoints that game developers can implement
* on their own servers to integrate with PlaySafe's authentication system.
*
* These examples show how to:
* 1. Verify player authentication tokens (used by PlaySafe to validate players)
* 2. Generate player auth tokens (used by PlaySafe to get JWT tokens for players)
*/
@aj-doge
aj-doge / expressjs-example.ts
Created November 7, 2025 19:59
ExpressJS Example on how to implement PlaySafe Custom Auth
/**
* Custom Authentication Examples - Express.js
*
* This file contains example Express endpoints that game developers can implement
* on their own servers to integrate with PlaySafe's authentication system.
*
* These examples show how to:
* 1. Verify player authentication tokens (used by PlaySafe to validate players)
* 2. Generate player auth tokens (used by PlaySafe to get JWT tokens for players)
*/
@aj-doge
aj-doge / hono-examples.ts
Created November 7, 2025 19:58
Hono Example on how to implement PlaySafe Custom Auth
/**
* Custom Authentication Examples
*
* This file contains example Hono endpoints that game developers can implement
* on their own servers to integrate with PlaySafe's authentication system.
*
* These examples show how to:
* 1. Verify player authentication tokens (used by PlaySafe to validate players)
* 2. Generate player auth tokens (used by PlaySafe to get JWT tokens for players)
*/