I can't get fetch body as plain string [Answered]
Normal text instead of response.credential also doesn't work. I used json stringfy, object etc, didn't work
public async Task<JsonResult> GoogleSignin([FromBody] string googleToken)await fetch("/Auth/GoogleSignin", {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: response.credential
})