Closed mlflabs closed 6 years ago
Yes there have been many breaking changes, sorry about that. Ooth 2 should be structured better now.
All classes aren't default exports anymore, so:
const { Ooth } = require('ooth');
Hey if your ooth-couchdb works I'd be happy if you contribute it :)
Just saw it was wrong in the documentation, sorry about that.
thx for the reply, its working now
btw, maybe i have missed it, but do you have any docs about the api, i want to use postman to do some api testing.
please mark as resolved
mike
@mlflabs the general api structure is
POST <ooth>/<stategy>/<method>
e.g. depending on your setup /auth/local/login
or /auth/local/register
search for registerPrimaryAuth
and registerMethod
in this file to see what methods have been registered, it should be easy to see what parameters are needed.
Here is an error, I presume it is from recent changes, since I just did an update to 2.30
TypeError: Ooth is not a constructor at start (/Users/mike/Projects/auth/index.js:39:22)
Here is my start script, I just copied your example: