https://supertokens.com/ logo
#support-questions
Title
# support-questions
c

codefingers

03/30/2021, 1:27 AM
HI @User , You're simply passing in the wrong types From what I see, You have a preApiHook property expected to return a promise but the method you're trying to use returns a synchronous value. Can you make sure they match? an example is that you can extend
Copy code
(context: ThirdPartyEmailPasswordPreApiHookCotext) => RequesInit
and wrap it with a promise like
Copy code
(context: ThirdPartyEmailPasswordPreApiHookCotext) => Promise<RequesInit>
then use the extended type on preApiHook. Feel free to paste code here so we see the exact mistake you're making and show how to correct you.