Skip to content

Commit

Permalink
Fix getOrigin issue
Browse files Browse the repository at this point in the history
  • Loading branch information
agektmr committed Aug 23, 2024
1 parent 3199a7a commit 1fd911b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"clean": "rimraf ./dist",
"build": "npm run clean && rollup -c && tsc --project ./src/tsconfig.json",
"build:prod": "npm run clean && rollup -c --environment NODE_ENV:production && tsc --project ./src/tsconfig.json",
"deploy": "npm run build && gcloud app deploy dev.yaml --project=try-webauthn",
"deploy:prod": "npm run build:prod && gcloud app deploy app.yaml --project=try-webauthn",
"deploy": "gcloud app deploy dev.yaml --project=try-webauthn",
"deploy:prod": "gcloud app deploy app.yaml --project=try-webauthn",
"gcp-build": "npm run build:prod",
"dev": "NODE_ENV=localhost node dist/server.mjs",
"emulator": "firebase emulators:start --only firestore,auth --project try-webauthn --import=./.data --export-on-exit",
Expand Down
3 changes: 1 addition & 2 deletions src/libs/webauthn.mts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ export const getOrigin = (
const octArray = hashes[i].split(':').map((h) =>
parseInt(h, 16),
);
const uint8Array = new Uint8Array(octArray.length);
// @ts-ignore
const androidHash = isoBase64URL.fromBuffer(uint8Array);
const androidHash = isoBase64URL.fromBuffer(octArray);
origin = `android:apk-key-hash:${androidHash}`;
break;
}
Expand Down

0 comments on commit 1fd911b

Please sign in to comment.