Docs — Protected: refExample

Protected: refExample

Example protected endpoint that requires a JWT and the `eq.read` permission.

Example

fetch('https://auth.magicrunez.com/api/refExample', {
  method: 'GET',
  headers: { 'Content-Type': 'application/json',
    'Authorization': '...value...'
  }
})
  .then(r => r.json())
  .then(console.log)
  .catch(console.error);