tKey JS SDK: Generating OAuth Key error (Could not get timesignedint)

  • SDK Version:
    "@tkey/core": "^12.0.0",
    "@tkey/private-keys": "^12.0.0",
    "@tkey/security-questions": "^12.0.0",
    "@tkey/service-provider-sfa": "^11.0.0",
    "@tkey/service-provider-torus": "^12.0.0",
    "@tkey/share-serialization": "^12.0.0",
    "@tkey/share-transfer": "^12.0.0",
    "@tkey/storage-layer-torus": "^12.0.0",
    "@tkey/web-storage": "^12.0.0",
    "@web3auth/ethereum-provider": "^7.0.4",
  • Platform: Web browser/JS
  • Browser Console Screenshots:
    image
    I’ve implemented tKey SDK for my Web App like below:


    image

    The line (tKeyInstance.serviceProvider as SfaServiceProvider).connect returns an error as being shown in Browser’s console above. Please advise me which part I’m doing wrong and if there is any information needed, I’ll provide asap. Thank you.

Error occurred while verifying paramstimesigned error could be because:

  • JWT is expired.
  • The JWT’s exp field is less than the current time.
  • The JWT’s iat field is greater than 60s from current time.

Web3Auth accepts only those JWTs whose iat is less than the current time and is not greater than 60s from current time. Regardless of the exp field of the JWT.

  • In short, the JWT is considered expired if the iat is greater than 60s from the current time.

Could you try generating a fresh token and check?

@vjgee Thank you for your time and your reply.
This is my mistake because I passed wrong verifier for tKey connection, should be Custom Provider instead of Social Login Provider. I’ve just checked it and the JWT is good.
Everything is ok now.