feat(model): ♻️ change from Uint8Array to dtring representation

This commit is contained in:
Julien Oculi 2024-05-13 18:19:14 +02:00
parent fa0b692b62
commit dda72bf67d

View file

@ -77,9 +77,9 @@ export interface Credential extends Ressource {
type CredentialCategory<T extends 'password' | 'ssh' | 'passkey'> = 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])))))