Get a user

Import the function at the top of your file

import { getUser } from "swizzle-js";

Edit a user with getUser(userId)

Returns the user object

const user = await getUser(request.user.userId)

Last updated