beforeSSR: ({ state, libraries }) => async ({ ctx }) => {
console.log("SSR all day long", ctx.status);
},
//Register user
// Post request to create a post
axios
.post(`${wordPressSiteUrl}/?rest_route=/secure-Oauth/v2/users&${JWT_Key}&${AUTH_KEY_VALUE}`, formData)
.then((res) => {
//xyz
})
.catch((err) => {
{
//zyx
}
});
};
so how would I go about this? when click register button, it’ll take formdata and submit to ssr ctx how?