clean-australia-2084
11/10/2022, 4:53 PMconst basePath = process.env.REACT_APP_ORY_URL || "<http://localhost:4000>"
const ory = new V0alpha2Api(
new Configuration({
basePath,
baseOptions: {
withCredentials: true,
},
}),
);
const session = await ory.toSession('mycookievalue');
proud-plumber-24205
11/10/2022, 4:55 PMtoSession
but you do not need to provide any string since the cookie is added automatically by the browser since you have withCredentials: true
addedclean-australia-2084
11/10/2022, 4:58 PMproud-plumber-24205
11/10/2022, 6:26 PMclean-australia-2084
11/10/2022, 6:38 PM