Update last_login when linking accounts

When two accounts are linked the primary is kept while the secondary is discarded. Currently this means the last_login is not not correct after linking, as the original last_login value is not updated during linking and the secondary account is deleted which has the correct last_login.

Is there a way to update the last_login as part of linking?

I believe you need to update all these fields manually using following endpoint.
Auth0 APIv2 Update User endpoint

Let us know if it helps.

1 Like