callbackOnVerification receives user as null
I'm running into an issue where
Handling OTP Verification: Auth configuration (
Question: Is there a way to ensure the
callbackOnVerification
is getting user
as null
after phone verification.user
in callbackOnVerification
is coming back as null
, making it impossible to update the database with the verified phone number.Handling OTP Verification: Auth configuration (
callbackOnVerification
issue):Question: Is there a way to ensure the
user
object is always available in callbackOnVerification
?
Could this be related to disableSession: true
in handleVerifyOTP
, or is there another way to retrieve the user at this stage?1 Reply
It returns null when the user hasn't signed up yet, but this should be fixed in the next release. It should only be called if a user exists and also should be called after sign-up if enabled.