Graphql api from react without middle srvice (like nestjs)

Hello,

I am following the tasklist api - grahpql tutorial. Is it possible to avoid these implementation and do this directly from react?
Basically, I want to authenticate the user when they login and create the token which I pass to every request.
Is it necessary to use a backend framework like nest?