Skip to content

Commit

Permalink
Fix typing issue on ArrayBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
abergs committed Jan 13, 2025
1 parent 8c1680b commit df56477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/passwordless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ArrayBuffer> {
// 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';
Expand Down

0 comments on commit df56477

Please sign in to comment.