# How do I protect certain fields with Slash GraphQL

**URL:** <https://discuss.dgraph.io/t/how-do-i-protect-certain-fields-with-slash-graphql/13148>\
**Category:** GraphQL\
**Tags:** kind:question\
**Created:** [March 11, 2021, 4:26am UTC](https://discuss.dgraph.io/t/how-do-i-protect-certain-fields-with-slash-graphql/13148 "2021-03-11T04:26:42Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![gja](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/gja/32/2654_2.png) [@gja](https://discuss.dgraph.io/u/gja)\
**Post date:** [March 12, 2021, 4:09am UTC](https://discuss.dgraph.io/t/how-do-i-protect-certain-fields-with-slash-graphql/13148/6 "2021-03-12T04:09:13Z")

</div>

Don’t think the docs have been updated just yet.

However, you may do the following:

```javascript
function myHandler({parents, authHeader}) {
  const headerName = authHeader.key;
  const headerValue = authHeader.value;
  const [algo, claimsBase64, signature] = headerValue.split(".")
  const claims = JSON.parse(atob(claimsBase64));
}

```

---

_[View the full topic](https://discuss.dgraph.io/t/how-do-i-protect-certain-fields-with-slash-graphql/13148)._
