Skip to content

fix: Uint8Array type error on assertion service breaking tests#59

Closed
ehanoc wants to merge 1 commit intodevelopfrom
fix/assertion-uint8array-pubKey
Closed

fix: Uint8Array type error on assertion service breaking tests#59
ehanoc wants to merge 1 commit intodevelopfrom
fix/assertion-uint8array-pubKey

Conversation

@ehanoc
Copy link
Copy Markdown
Contributor

@ehanoc ehanoc commented Dec 25, 2025

What

Fixing Uint8Array type expected when parsing into creds publickey.

Signed-off-by: ehanoc <ehanoc@protonmail>
@ehanoc ehanoc self-assigned this Dec 25, 2025
@ehanoc ehanoc added the bug Something isn't working label Dec 25, 2025
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying liquid-auth with  Cloudflare Pages  Cloudflare Pages

Latest commit: f148110
Status: ✅  Deploy successful!
Preview URL: https://85db71f0.liquid-auth.pages.dev
Branch Preview URL: https://fix-assertion-uint8array-pub.liquid-auth.pages.dev

View logs

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to fix a Uint8Array type error in the assertion service by wrapping the fromBase64Url() function call with new Uint8Array(). The change aims to ensure the publicKey property in the credential object passed to verifyAuthenticationResponse is of the correct type.

Key Changes

  • Wrapped fromBase64Url(userCredential.publicKey) with new Uint8Array() constructor in the assertion service's response method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/assertion/assertion.service.ts
@ehanoc ehanoc closed this Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants