benduran / neuralyzer

Node.js, Websocket-based simple state synchronization server. Useful for synchronizing multiplayer games and collaborative visualizations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zAllow programmer to provide an authentication / authorization callback function

benduran opened this issue · comments

Right now, there is no concept of auth. Anybody is allowed to login and do whatever they want.

Acceptance Criteria

  • Allow ingestion of an auth callback when using the NodeJS Neuralyzer API
  • Callback can be synchronous or asynchronous
  • Callback expect a return in the following format: { error, user }. If user is not null, they're allowed. Otherwise, there should be an error.