Open tomast1337 opened 11 months ago
Hey man, how its going?
Just pass your secret api key on the username and let the password field empty.
Just like that.
import { Client, } from "@pagarme/pagarme-nodejs-sdk";
const client = new Client({
basicAuthUserName: 'my-secret-api-key',
basicAuthPassword: ''
})
With the old , we could do:
However, the new
Client
object doesn't seem to have anapi_key
option to use.