# Update user metadata after MFA completion

**URL:** <https://community.auth0.com/t/update-user-metadata-after-mfa-completion/102523>\
**Category:** Get Help\
**Tags:** policies-configuration, mfa\
**Created:** [March 14, 2023, 5:36pm UTC](https://community.auth0.com/t/update-user-metadata-after-mfa-completion/102523 "2023-03-14T17:36:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 14, 2023, 11:13pm UTC](https://community.auth0.com/t/update-user-metadata-after-mfa-completion/102523/3 "2023-03-14T23:13:10Z")

</div>

Hi there @hunter1!

> [@hunter1](#):
>
> The issue I’m having is verifying that they completed MFA before the metadata updated. I’m trying to reference the event.authentication.methods object for this but the Action is executed before event.authentication can be updated. Is there a way to verify MFA has been completed in the login flow before completing some task?

Unfortunately as you’ve noticed MFA does not complete until _after_ Actions/Rules have executed - It’s outside the scope of an Action, but you could potentially look at ID token claims to see if MFA was performed, or add a claim to an access token to indicate that MFA was required for a given login and go about it that way. An ID token returned after a login requiring MFA will contain both the `acr` and `amr` claims:

 ![Screenshot 2023-03-14 at 4.12.47 PM](https://global.discourse-cdn.com/auth0/original/3X/b/b/bb1df2783f4ed701fc6c0138f859e0460ddbb950.png)

Hope this helps!

---

_[View the full topic](https://community.auth0.com/t/update-user-metadata-after-mfa-completion/102523)._
