fxa-auth-db-server0.45.0 • Public • Published
Firefox Accounts DB Server
For context, see the
which contains a MySQL backend
and a memory-store backend
This package is actually a sub-directory of that repository.
// Require the dbServer. This includes dbServer.createServer() and the dbServer.errors object.var dbServer =// require the database enginevar Store =// create a DB instance and pass a logger and the dbServer.errors objectvar db = console dbServererrors// create the server and pass it the storage instancevar server = dbServerserver// this will be called at the end of each failed requestserver// this will be called at the end of each successful requestserver// this will be called at the end of each failed requestserver// this will be called every 15sserver
If you would like to implement a database/storage API, this document will be useful.
If you want to know more about the endpoints implemented by this server, read the server API documentation.