Pretty sure I've written the Rule correctly, but am not able to get user_metadata in the user object in my Gatsby SPA

Hi @rueben.tiow ,
Thanks a lot for that suggestion.
I changed the rule, and updated my call from
user = authResult.idTokenPayload
to:
user = authResult.authTokenPayload

Not so simple. I am using the exact code that is published by Auth0 in this thread: