Skip to content

importSpkiBase64OrThrow ​

importSpkiBase64OrThrow ​

Import a public key from base64-encoded SubjectPublicKeyInfo (no PEM headers).

ts
function importSpkiBase64OrThrow(
	base64: string,
	algorithm?: PublicKeyImportInput,
): Promise<CryptoKey>

Parameters

See also

Released under the MIT License.