Auth0 Home Blog Docs

Updating User Metadata using Single Page Application

api
clients
user-metadata
authorization
user-profile

#1

Hi there!

We are in the process of building a web app and we would like to know if we can update the user metadata using the API calls to a Client Type that is “Single Page Application” or do we have to create a “Non-Interactive Client” to handle API calls to update the user metadata. We would prefer to have “Single Page Application” to handle our Authentication and also our API calls to update properties of a User Profile (such as user metadata)

Kindly please respond on a method that would be suitable for our web app

Thank you
Harsha


#2

Depends which way you want to use. Each user can update own user_metadata throug Management API calls. You cann do that directly from the browser using your Single Page Application token.

However if you want to do that for custom user, or if you simply want to do that through your backend (for whatever other reason) - you have to use another client, of type Non-Interactive Client.


#3

@rafal.wrzeszcz This statement - You can or cannot ? " You cann do that directly from the browser using your Single Page Application token."


#4

@hello4 You can, must have made a typo. Here is a documentation for this case https://auth0.com/docs/metadata/lock#update-user-metadata


#5

@rafal.wrzeszcz This statement - You can or cannot ? " You cann do that directly from the browser using your Single Page Application token."


#6

@hello4 You can, must have made a typo. Here is a documentation for this case https://auth0.com/docs/metadata/lock#update-user-metadata


#7