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.