Your metadata has exceeded the allowed limit of 4096 bytes redirect

Hello. I’m having an issue with a specific user clicking our login button. We then try to redirect them to the auth0 sign in page using loginWithRedirect but the user immediately gets redirected back to our site with an error appended in the url from auth0 with the message your metadata has exceeded the allowed limit of 4096 bytes I can not find anything about this error and only one user is having the issue at the moment.

Hi @ssobhani

I’m not familiar with an app_metadata or user_metadata length restriction, and 4096 bytes seems small to me.

Check the user in question on the dashboard, and look at their app_ and user_ metadata, is it bigger than other users?

Check the tenant logs for the exact error message, and post that here if you can.

John

1 Like

Thanks. I looked at the users in question and they do in fact have app_metadata. Larger than the byte limit. Here is the exact error from the logs.

  "error": {
    "message": "Your metadata has exceeded the allowed limit of 4096 bytes.",
    "oauthError": "access_denied",
    "type": "oauth-authorization"
  },