Function: decryptCredentialBundle()
decryptCredentialBundle(Defined in: turnkey.ts:59 Decrypt an encrypted email auth/recovery or oauth credential bundle.credentialBundle,embeddedKey):string
Parameters
credentialBundle
string
The encrypted credential bundle.
embeddedKey
string
The private key for decryption.
Returns
string
- The decrypted data or null if decryption fails.
Throws
- If unable to decrypt the credential bundle