Files
Yurii Motovanddependabot[bot] a8f1ba0e70 ⬆️ Bump @hey-api/openapi-ts from 0.73.0 to 0.97.3 and migrate to new client (#2388)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-07 18:25:28 +02:00

27 lines
560 B
TypeScript

// Note: the `PrivateService` is only available when generating the client
// for local environments
import { PrivateService } from "../../src/client"
import { client } from "../../src/client/client.gen"
client.setConfig({
baseURL: `${process.env.VITE_API_URL}`,
})
export const createUser = async ({
email,
password,
}: {
email: string
password: string
}) => {
const response = await PrivateService.createUser({
body: {
email,
password,
is_verified: true,
full_name: "Test User",
},
})
return response.data
}