# Updating app\_metadata in a serverless application (Vercel + Nextjs)

**URL:** <https://community.auth0.com/t/updating-app-metadata-in-a-serverless-application-vercel-nextjs/120724>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [November 12, 2023, 10:09am UTC](https://community.auth0.com/t/updating-app-metadata-in-a-serverless-application-vercel-nextjs/120724 "2023-11-12T10:09:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshuaking269](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joshuaking269/32/52364_2.png) [@joshuaking269](https://community.auth0.com/u/joshuaking269)\
**Post date:** [November 12, 2023, 10:09am UTC](https://community.auth0.com/t/updating-app-metadata-in-a-serverless-application-vercel-nextjs/120724/1 "2023-11-12T10:09:40Z")

</div>

Hi all, I’m developing a serverless application using vercel and nextjs and I want to update a user’s app\_metadata when they purchase a product (allowing them access to new pages etc).

I am fairly well aware that I am unable to modify app\_metadata in a serverless application due to auth0’s restrictions (for security reasons).

I am wondering how I can navigate this problem and what my options would be.

Thanks for you time.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 15, 2023, 7:42pm UTC](https://community.auth0.com/t/updating-app-metadata-in-a-serverless-application-vercel-nextjs/120724/3 "2023-11-15T19:42:02Z")

</div>

Hi @joshuaking269,

Welcome to the Auth0 Community!

> [@joshuaking269](#):
>
> I am fairly well aware that I am unable to modify app\_metadata in a serverless application due to auth0’s restrictions (for security reasons).

Where are you seeing this policy? Generally, you can’t update a user’s app\_metadata directly from a _client side application_. Is that what you’re thinking?

---

<div class="post-metadata">

**Author:** ![joshuaking269](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joshuaking269/32/52364_2.png) [@joshuaking269](https://community.auth0.com/u/joshuaking269)\
**Post date:** [November 22, 2023, 8:41pm UTC](https://community.auth0.com/t/updating-app-metadata-in-a-serverless-application-vercel-nextjs/120724/4 "2023-11-22T20:41:01Z")

</div>

Hi, yes I believe that the restriction is prohibiting the modification of app\_metadata through a client sided application. I haven’t been able to find any way to run it “server sided” though.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 27, 2023, 4:35pm UTC](https://community.auth0.com/t/updating-app-metadata-in-a-serverless-application-vercel-nextjs/120724/5 "2023-11-27T16:35:46Z")

</div>

A serverless function generally isn’t on the client side. You should be able to update the user from your serverless function.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 22, 2023, 5:55pm UTC](https://community.auth0.com/t/updating-app-metadata-in-a-serverless-application-vercel-nextjs/120724/6 "2023-12-22T17:55:14Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [July 31, 2024, 9:06pm UTC](https://community.auth0.com/t/updating-app-metadata-in-a-serverless-application-vercel-nextjs/120724/7 "2024-07-31T21:06:07Z")

</div>

Hey team!

This topic seems related to the new [Auth0 Integration](https://auth0.com/blog/auth0-vercel-integration/) available new in [Vercel Marketplace](https://vercel.com/integrations/auth0). This is the first version of this integration, and we welcome your feedback to improve future iterations.

You’ll need an [existing Vercel project](https://vercel.com/docs/projects/overview) to use the new integration to build and customize the Identity flow. You can either import your project into Vercel or use a Vercel template so you don’t have to start from scratch like our SaaStart template to deploy a production-ready B2B SaaS app in minutes (learn more [here](https://auth0.com/blog/speed-up-your-customer-identity-journey-with-auth0-saastart/)).

If you find yourself having questions regarding this new integration for the next two weeks, we are hosting an [Ask Me Anything session](https://community.auth0.com/t/auth0-community-ask-me-anything-integrating-auth0-within-the-vercel-marketplace/136388). Our Product Expert will provide comprehensive written answers on August 8th from 8 AM to 10 AM PST.

Find out more about [Auth0 Integration](https://auth0.com/blog/auth0-vercel-integration/) and [learn more about AMA](https://community.auth0.com/t/auth0-community-ask-me-anything-integrating-auth0-within-the-vercel-marketplace/136388).

Thanks!
