From df56477026d7bcc801422331e5f32df3e9497055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85berg?= Date: Mon, 13 Jan 2025 15:03:24 +0100 Subject: [PATCH] Fix typing issue on ArrayBuffer --- src/passwordless.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/passwordless.ts b/src/passwordless.ts index 7eb136c..ead6c16 100644 --- a/src/passwordless.ts +++ b/src/passwordless.ts @@ -444,7 +444,7 @@ function base64UrlToBase64(base64Url: string): string { return base64Url.replace(/-/g, '+').replace(/_/g, '/'); } -function base64UrlToArrayBuffer(base64UrlString: string | BufferSource): ArrayBuffer { +function base64UrlToArrayBuffer(base64UrlString: string | BufferSource): Uint8Array { // improvement: Remove BufferSource-type and add proper types upstream if (typeof base64UrlString !== 'string') { const msg = 'Cannot convert from Base64Url to ArrayBuffer: Input was not of type string';