seneca-mosca-auth
Authentication and Authorization for Mosca using Seneca and Seneca User.
This is a specialization of Seneca User
for this specific use case. Go there and have a look for the full
docs. The default role is changed from 'user'
to 'mosca-auth'
.
Install
npm i mosca seneca-mosca-auth --save
Usage
'use strict' const Mosca = const Seneca = const MoscaAuth = var seneca = senecavar server = // configures Mosca to authenticate via senecaMoscaAuth // register a userseneca
Acknowledgements
This project was kindly sponsored by nearForm.
License
MIT