Updating user metadata after SMS hook

I’m using a custom MFA with a hook and rules. I have to update the user metadata AFTER the user has succesfully completed the MFA.
How can I accomplish this?