clean-australia-2084
12/01/2022, 6:18 PMconst ory = new V0alpha2Api(
new Configuration({
basePath,
accessToken: process.env.ORY_PAT
})
);
const resp = await ory.initializeSelfServiceVerificationFlowWithoutBrowser();
if (!resp) return;
const verificationFlowId = resp.data.id;
await ory.submitSelfServiceVerificationFlow(verificationFlowId, {
method: "code",
email
});