Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
linenumberstrue
collapsetrue
fetch('https://restapi.ipex.cz/v1/sso/login', {
  method: 'POST',
  body: JSON.stringify({
    email: 'your_login i.e. jiri.nova@ipex.cz',
    password: 'your_password'
  })
})
.then(res => res.json())
.then(({access_token}) => console.log(`"Authorization": "Bearer ${access_token}"`))

...