Skip to content

Commit

Permalink
fix: update secure environment types
Browse files Browse the repository at this point in the history
Signed-off-by: Berend Sliedrecht <[email protected]>
  • Loading branch information
Berend Sliedrecht committed Nov 12, 2024
1 parent d48a48d commit 17e3472
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SecureEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const expoSecureEnvironment = requireNativeModule<SecureEnvironment & { supports
)

export interface SecureEnvironment {
generateKeypair(id: string, biometricsBacked?: boolean): void
getPublicBytesForKeyId(keyId: string): Uint8Array
sign(keyId: string, message: Uint8Array, biometricsBacked?: boolean): Promise<Uint8Array>
generateKeypair(id: string, biometricsBacked?: boolean): Promise<void> | void
getPublicBytesForKeyId(keyId: string): Promise<Uint8Array> | Uint8Array
sign(keyId: string, message: Uint8Array, biometricsBacked?: boolean): Promise<Uint8Array> | Uint8Array
}

let isExpoSecureEnvironmentSupported: boolean
Expand Down

0 comments on commit 17e3472

Please sign in to comment.