plainblack / ving

An opinionated web services starter for Nuxt3 that provides REST and per-field privileges out of the box.
https://plainblack.github.io/ving/
58 stars 7 forks source link

Unable to create Session using the API and following instructions in docs #173

Closed perlDreamer closed 1 day ago

perlDreamer commented 5 days ago

Docs say to use apiKey and privateKey:

https://plainblack.github.io/ving/rest/Session.html

If you pass those, then you get this error:

"content" : "{\"url\":\"/api/v1/session\",\"statusCode\":441,\"statusMessage\":\"Missing Required Parameter\",\"message\":\"apiSecret is required.\",\"stack\":\"<pre><span class=\\\"stack internal\\\">at createError (./node_modules/h3/dist/index.mjs:79:15)</span>\\n<span class=\\\"stack\\\">at ouch (./ving/utils/ouch.mjs:47:12)</span>\\n<span class=\\\"stack\\\">at testRequired (./ving/utils/rest.mjs:130:19)</span>\\n<span class=\\\"stack\\\">at Object.handler (./server/api/v1/session/index.post.mjs:25:5)</span>\\n<span class=\\\"stack internal\\\">at process.processTicksAndRejections (node:internal/process/task_queues:95:5)</span>\\n<span class=\\\"stack internal\\\">at async ./node_modules/h3/dist/index.mjs:1962:19</span>\\n<span class=\\\"stack internal\\\">at async Object.callAsync (./node_modules/unctx/dist/index.mjs:72:16)</span>\\n<span class=\\\"stack internal\\\">at async Server.toNodeHandle (./node_modules/h3/dist/index.mjs:2249:7)</span></pre>\",\"data\":\"apiSecret\"}",
perlDreamer commented 5 days ago

API Key screen also suggests API Key and Private Key

Screenshot 2024-06-27 at 4 15 01 PM
rizen commented 1 day ago

fixed