Cannot initialize tKey

I’m facing a problem when trying to initialize tKey

First, after logging in successfully, I store the tKey.serviceProvider of the account. Then, I initialize new tKey service provider. After that, I assign the stored tKey service provider to initial tKey service provider. Here, I think I can have the tKey metadata and initialize the tKey but the tKey metadata is undefined here and cannot initialize it

Hey @ltminhthu.209

The steps you are using appear to be correct. Could you please share the corresponding code snippets?

@shahbaz This is what I’m working on (note: I’m using @tkey/default 9.0.0)

const serviceProvider = await getServiceProvider(passcode);

await initServiceProvider(tkey);
tkey.serviceProvider = { ...tkey.serviceProvider, ...serviceProvider };

await tkey.initialize();

The initServiceProvider is the function that we rewrote (used for initializing the service provider)

If you need more information, please tell me

Thanks for sharing, @ltminhthu.209. Is there a way we can see the full example code? It would help us identify where it might be failing.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.