Function: decryptCredentialBundle()

decryptCredentialBundle(credentialBundle, embeddedKey): string

Defined in: turnkey.ts:59

Decrypt an encrypted email auth/recovery or oauth credential bundle.

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

Function: decryptCredentialBundle()

decryptCredentialBundle(credentialBundle, embeddedKey): string

Defined in: turnkey.ts:59

Decrypt an encrypted email auth/recovery or oauth credential bundle.

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