Hi, I am using FastAPI with supertokens. And would like to store users in my own DB. I am using Email passwordless social recipe and would like to capture the event when the user signs in so that I can check if I have the corresponding user in my database and if not create one. Can anyone point me to the relevant docs please. Thanks.
Thanks @rp_st . We are using managed service and we tried this example. This works for Google/Github auth but does not work for passwordless email recipie where user clicks on a magic link or enters OTP. The custom sign-in handers are not getting invoked then.
r
rp_st
03/13/2024, 11:40 AM
The link I shared is for social and email password auth
rp_st
03/13/2024, 11:40 AM
For social and passwordless, have a look at thirdpartypasswordless recipe
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).