Guardian.Plug.current_resource(conn) returns nil

I am trying to use guardian with uberauth and uberauth_identity.
What I am trying to achieve is that I want to use the same endpoind (/api/events) and depending on if there is an authorization header or not (bearer token) return different things.
I am using postman.
what is happening is that when I have my endpoint inside the scope of jwt_authenticated, then if I dont send an authorization header then it gives me not authorized error as it is set up.
so this would mean that this endpoind should be outside this scope i think.
but then it seems like it never takes the authorization header so even if i add the header i never have a user (Guardian.Plug.current_resource(conn) is always nil.
Why is that?

ok what i found is that if I comment out this plug:


then it is working, but I am pretty sure that this is not a very good way of doing it

ok for now i fixed it like this:
made a scope where i dont ensure authentcation and one where i do and use them accordingly