Open alexellis opened 4 years ago
Create sdk and read secrets method for use with Node.js in the node12 and node templates
const sdk = require("openfaas-sdk") let pass = await sdk.readSecret("db-pass") await openDB("admin", pass)
That makes a lot of sense.
For the record, I wrote this for my Typescript template and the interface was pretty-much identical
Task
Create sdk and read secrets method for use with Node.js in the node12 and node templates
Example