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])))))