average-arm-52191
01/11/2022, 12:17 PMpulumi config set --secret auth0Secret S3cr37
Now I have use case to use Auth0 API (management api) from auth0 SDK,
import { Config, Output } from '@pulumi/pulumi'
import * as Auth0 from 'auth0' // This is auth0 management api sdk.
const auth0Config = new Config('auth0')
const auth0 = new Auth0.ManagementClient({
domain: '<http://test-linktree.us.auth0.com|test-linktree.us.auth0.com>',
clientId: auth0Config.requireSecret('clientId'),
clientSecret: auth0Config.requireSecret('clientSecret')
})
await auth0.getClients();
Issue is output of auth0Config.requireSecret('clientId')
have type Output<T>, Is there way to get plain text out of it.
Please help.
Thanksbillowy-army-68599