Skip to content

Commit 0aca366

Browse files
committed
fix SeedlessOnboardingController types
1 parent 49565c1 commit 0aca366

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/scripts/controller-init/seedless-onboarding/seedless-onboarding-controller-init.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ export const SeedlessOnboardingControllerInit: ControllerInitFunction<
2727

2828
const network = loadWeb3AuthNetwork();
2929

30-
const controller = new SeedlessOnboardingController({
30+
const controller = new SeedlessOnboardingController<
31+
EncryptionKey | CryptoKey
32+
>({
3133
messenger: controllerMessenger,
3234
state: persistedState.SeedlessOnboardingController,
3335
network,
@@ -50,6 +52,9 @@ export const SeedlessOnboardingControllerInit: ControllerInitFunction<
5052
encrypt: (key, data) => encryptor.encrypt(key, data),
5153
encryptWithDetail: (key, data) => encryptor.encryptWithDetail(key, data),
5254
importKey: (key) => encryptor.importKey(key),
55+
keyFromPassword: encryptor.keyFromPassword,
56+
exportKey: encryptor.exportKey,
57+
generateSalt: encryptor.generateSalt,
5358
},
5459
});
5560

0 commit comments

Comments
 (0)