Examples of a redirects file in root folder using netlify ONLY

Oh, I am talking about the serverless function that you’d write to update the user role, like this one here:

You’d have to set the role in this function using one of the admin methods of GoTrueJS. Once it’s set, you’d have to return the user back to client. Here’s an example:

Taken from:

updatedUser is the object you’d get here:

1 Like