From dda72bf67d4bb8a88ea018c4f4d0bc86408faf73 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Mon, 13 May 2024 18:19:14 +0200 Subject: [PATCH] feat(model): :recycle: change from `Uint8Array` to dtring representation --- src/models/src/credential.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/models/src/credential.ts b/src/models/src/credential.ts index 5711ade..8a8ad7e 100644 --- a/src/models/src/credential.ts +++ b/src/models/src/credential.ts @@ -77,9 +77,9 @@ export interface Credential extends Ressource { type CredentialCategory = T extends 'password' ? { store: { - hash: Uint8Array + hash: string //hex or b64 of Uint8Array alg: string - salt: Uint8Array + salt: string //hex or b64 of Uint8Array } } : T extends 'ssh' ? { @@ -101,3 +101,5 @@ PassKey store: counter: number } */ + +//new Uint8Array(Object.values(JSON.parse(JSON.stringify(new Uint8Array([1, 2, 3])))))