Hey guys, I am trying to implement a Telegram-like authentication where users are logged in via OTPs...
e
Hey guys, I am trying to implement a Telegram-like authentication where users are logged in via OTPs as primary log-in factor + there is a possibility to add additional password protection as a second factor. Is that possible? I can see there is APIOptions parameter in the
create_code_post / consume_code_post
function calls for Passwordless recipe, which makes it possible to
get_session
using
api_options.request
. But there is no such parameter for the Email-Password recipe 🥲
n
Hi @execreate, Api options should exist for the email password recipe too, can I see how you are trying to override the APIs?
e
Hi @nkshah2 ! Here is the helper text from my IDE, I'm trying to override the sign-in method to make sure that a user already has an active session from Passwordless recipe
n
Right youre looking at the function override, api options exists in the api override
e
@nkshah2 which signature is correct to get ApiOptions inside
sign_in
? Looks like ApiOptions is not passed into
sign_in
method
Oh sorry
e
I imported the wrong interface
n
Yep, if you import the API interface it should give you the signatures youre looking for
e
for some reason I was pretty sure I copy-pasted that from docs 🤔 anyways, thank you for your help @nkshah2 🙂
n
The docs have a section for function overrides too so maybe thats where you got it from?
Anyways, happy to help
e
7 Views