pythonasyncioapiasyncfastapiframeworkjsonjson-schemaopenapiopenapi3pydanticpython-typespython3redocreststarletteswaggerswagger-uiuvicornweb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
471 B
22 lines
471 B
// Note: the `PrivateService` is only available when generating the client
|
|
// for local environments
|
|
import { OpenAPI, PrivateService } from "../../src/client"
|
|
|
|
OpenAPI.BASE = `${process.env.VITE_API_URL}`
|
|
|
|
export const createUser = async ({
|
|
email,
|
|
password,
|
|
}: {
|
|
email: string
|
|
password: string
|
|
}) => {
|
|
return await PrivateService.createUser({
|
|
requestBody: {
|
|
email,
|
|
password,
|
|
is_verified: true,
|
|
full_name: "Test User",
|
|
},
|
|
})
|
|
}
|
|
|