News for hackers. Stuff that matters.
Re:Practical Front-End Architecture by billoshoes on Tuesday September 21, 2021 @11:57AM (#28606373)
Do you have any examples of JWT refresh token auth for Apollo? I'm having an absolute nightmare figuring it out
Re:Practical Front-End Architecture by jaredgorski on Tuesday September 21, 2021 @12:14PM (#28606564)
Specifically, are you referring to JWT with Apollo client on the server-side?

On the client-side, you can just use a link and get the cookie into an auth header that way. On the server-side, you need some way of getting that auth token from the cookie and passing it into the server-side runtime so that you can insert it into the auth header via a link in each server-side Apollo client instance.

Re:Practical Front-End Architecture by brundolf on Tuesday September 21, 2021 @11:58AM (#28606407)
Sorry, that stuff was already set up when I got here