Closed NathanielAwoke closed 1 year ago
Hi @NathanielAwoke , have you checked if this method is reached?
You need to make sure that the controller you are using includes this concern so gql devise can use DTA to set the user by token.
I'm curious about the use case you are dealing with here. Do you mind expanding a little bit more on your idea?
Question
current_resource
is set only when the field is defined as an authenticated field, is there any way to set thecurrent_resource
for unauthenticated fields also, given the proper auth headers are set in the request ?field :listings, Types::ListingType, authenticate: true
-> current resource is accessible herefield :listings, Types::ListingType, authenticate: false
-> current resource is not available, even though the proper headers are set in the request.