API > GetPage
The GetUsers function fetches the project users information.
import { getUsers } from "@suncel/nextjs/api";
type User = {
role: string;
_id: string;
firstname: string;
lastname: string;
email: string;
avatar_url?: string;
};
const getUsers = (): Promise<RequestResult<User[]>>