# How to Solve hasScope Directive error : You are not authorized for this resource

**URL:** <https://community.neo4j.com/t/how-to-solve-hasscope-directive-error-you-are-not-authorized-for-this-resource/33954>\
**Category:** GraphQL & GRANDstack\
**Tags:** authentication\
**Created:** [February 19, 2021, 1:23am UTC](https://community.neo4j.com/t/how-to-solve-hasscope-directive-error-you-are-not-authorized-for-this-resource/33954 "2021-02-19T01:23:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaedag](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jaedag/32/12923_2.png) [@jaedag](https://community.neo4j.com/u/jaedag)\
**Post date:** [February 19, 2021, 1:23am UTC](https://community.neo4j.com/t/how-to-solve-hasscope-directive-error-you-are-not-authorized-for-this-resource/33954/1 "2021-02-19T01:23:35Z")

</div>

I followed Will Lyon's tutorial on YouTube for adding hasScope and Authentication on YouTube [here](https://youtu.be/dCCObITlSY0).

I added the hasScope to one of my custom mutations but I keep getting the error  
`Unhandled Rejection (Error): You are not authorized for this resource`

This happens when I deploy to netlify using github.  
I'm not sure what the issue is. Has anybody been able to get this to work?

---

<div class="post-metadata">

**Author:** ![luwembamugumya](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/luwembamugumya/32/18182_2.png) [@luwembamugumya](https://community.neo4j.com/u/luwembamugumya)\
**Post date:** [May 8, 2021, 10:25am UTC](https://community.neo4j.com/t/how-to-solve-hasscope-directive-error-you-are-not-authorized-for-this-resource/33954/2 "2021-05-08T10:25:12Z")

</div>

Did you manage to solve this yet?

---

<div class="post-metadata">

**Author:** ![jaedag](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jaedag/32/12923_2.png) [@jaedag](https://community.neo4j.com/u/jaedag)\
**Post date:** [May 31, 2021, 10:43am UTC](https://community.neo4j.com/t/how-to-solve-hasscope-directive-error-you-are-not-authorized-for-this-resource/33954/3 "2021-05-31T10:43:09Z")

</div>

Still haven't gotten past this yet. I'd be happy to know if you've gotten a solution
