Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

The problem of not saving the token in cookies (react + typescript)

$
0
0

Jwt token is received but not stored in cookies, although credentials:'include' is set

const submit = async(e : SyntheticEvent) =>{    e.preventDefault();    await fetch('https://localhost:5001/login',{      method : 'POST',      headers:{'Content-Type': 'application/json'},      credentials:'include',      body : JSON.stringify({          login,          password      })  });}

jwt token is received but not stored in cookies, although credentials:'include' is set


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>