App_MetaData being removed after login

We have several single page apps and therefore have several clients. We are trying to restrict access through user groups but after logging in app metadata such as roles and groups are being cleared so the system doesnt work. We need assisntance with being able to create rules by client that authenticate using information that is constant.

Best,
T.Ellis

  • Is the app_metadata being cleared in
    your app, or in Auth0?
  • Have you
    verified this by comparing the user
    profile in the dashboard before and
    after logging in?
  • Do you have any
    other rules that write to
    app_metadata?

App_metadata is persisted, and will only be removed if being overwritten or deleted via the dashboard, or inside a Rule.