@vvkgaming/colyseussocialcustom
TypeScript icon, indicating that this package has built-in type declarations

0.10.9 • Public • Published


Patreon donate button Discussion forum

Authentication and Social features for Colyseus
View documentation

Features

  • Authenticate with Facebook
  • Get list of user's friends
  • Get list of user's online friends
  • Friend requests (send, accept, decline)
  • Block user

Authentication Providers

  • Anonymous
  • Facebook
  • ...more coming soonish!

Environment Variables

  • MONGO_URI: MongoDB connection URI
  • JWT_SECRET: Secure secret string for authentication.

For Facebook:

  • FACEBOOK_APP_TOKEN: Facebook App Token ("appid|appsecret")

For Push Notifications

  • WEBPUSH_SUBJECT - mailto: or URL.
  • WEBPUSH_PUBLIC_KEY - VAPID Public Key
  • WEBPUSH_PRIVATE_KEY - VAPID Private Key

You can generate VAIPD keys using npx web-push generate-vapid-keys

Integration with your Node.js Web Framework

Express

import express from "express";
import socialRoutes from "@colyseus/social/express"

const app = express();
app.use("/", socialRoutes);

app.listen(8080);

TODO's

License

MIT License.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.10.9
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.10.9
    1

Package Sidebar

Install

npm i @vvkgaming/colyseussocialcustom

Weekly Downloads

1

Version

0.10.9

License

MIT

Unpacked Size

107 kB

Total Files

34

Last publish

Collaborators

  • vvkgaming