getSecret

context.getSecret('key') - get previously stored secret

Arguments
argumentTypeDescription
keystring

Return value - Promise

Use this method to retrieve secrets previously stored with ctx.storeSecret. It automatically handles decryption before returning the value.

const secret = await context.getSecret('secret_key')
logo
Kaiten
If you have any questions or need help with integration feel free to write us at support@kaiten.io