Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fetch('https://mylocalip:5000/api/token')
- .then(function (response) {
- console.log('response : ',response)
- return response.json();
- }).then (function (response) {
- this.setState({
- token: response.token
- });
- }).catch(function (error) {
- console.log(error);
- });
Add Comment
Please, Sign In to add comment