export const signup = (source: any, data: any): Promise => { return fetch("/api/auth/signup", { body: JSON.stringify({ source: source, ...data, }), headers: { "Content-Type": "application/json", }, method: "POST", }); };