The approach for authenticating requests with Apol...
# prisma-whats-new
r
The approach for authenticating requests with Apollo is to include a header with the token in the middleware while creating the network interface. But how do you handle login, considering the fact that the the network interface has already been initialised. Can the middleware be changed on login?
s
@ragnorc The network interface can execute arbitrary code. A common pattern is to read the token from local storage on each request
r
Yes, sure! Than you very much! 😄