mirror of
https://github.com/myfatemi04/wheelshare-frontend.git
synced 2025-04-21 19:29:51 -04:00
add content-type header to Authenticator
This commit is contained in:
parent
a99a2b2427
commit
801216c51c
|
@ -13,6 +13,9 @@ export default function Authenticator() {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetch(`${API_ENDPOINT}/create_session`, {
|
fetch(`${API_ENDPOINT}/create_session`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
code,
|
code,
|
||||||
provider,
|
provider,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user