# Has anyone ever been able to get the @hasScope directive to work in a grandstack project with netlify deployment?

**URL:** <https://community.neo4j.com/t/has-anyone-ever-been-able-to-get-the-hasscope-directive-to-work-in-a-grandstack-project-with-netlify-deployment/39174>\
**Category:** GraphQL & GRANDstack\
**Created:** [June 1, 2021, 10:35am UTC](https://community.neo4j.com/t/has-anyone-ever-been-able-to-get-the-hasscope-directive-to-work-in-a-grandstack-project-with-netlify-deployment/39174 "2021-06-01T10:35:19Z")\
**Posts on this page:** 1\
**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:** [June 1, 2021, 10:35am UTC](https://community.neo4j.com/t/has-anyone-ever-been-able-to-get-the-hasscope-directive-to-work-in-a-grandstack-project-with-netlify-deployment/39174/1 "2021-06-01T10:35:19Z")

</div>

Hi everyone I used the grandstack starter to create my project hosted [here](https://github.com/jaedag/fl-admin-portal/). The problem is that I haven't been able to get the authentication directives to work.

I've not been able to use the @isAuthenticated or @hasScope directives at all. I keep getting an `Authorization Error: You are not authorized for this resource`

Has anyone here ever been able to get the auth directives to work successfully with a netlify deploy? Every thing works fine on my local machine, I only get this feedback when deploying through netlify.  
Could this be an issue with the neo4j-graphql-js library?

I'm currently not ready to switch to the new `@neo4j/graphql` library as there are still some features I use that are not supported in the new library, but I'm still hoping to launch my application soon.
