I just spent the last 2 days fighting my way through creating an adapter for Grafbase when I could have just watched this to figure it out all. Great video Colby! I managed to fix a bug by spotting something you did differently in one of the adapter methods.
I am SO glad you uploaded a video describing this as I have been having issues understanding the logic behind this. You are by far my favorite web developer here. I can always count on your videos to clear up confusion for me!
Hi Colby! thank you for making this amazing video! I just have a question. I make a request to the login API and I receive the refresh token that is in the cookie and the access token that is in the response body. Now how should I handle the access token on the client side(next js)? If I store this in a global state like context API, then I don't have access to that state in the getServerSideProps function, and I can't set it in the request.header.authorization because getServerSideProps run on the server side and the state is on the client side! what is the right flow for this kind of case?
Learn how to build a full stack Next.js app in my upcoming course: colbyfayock.com/course
I just spent the last 2 days fighting my way through creating an adapter for Grafbase when I could have just watched this to figure it out all. Great video Colby! I managed to fix a bug by spotting something you did differently in one of the adapter methods.
really happy to hear that! 🙌
Get fresh tutorials and other free content straight to your inbox! colbyfayock.com/news
I am SO glad you uploaded a video describing this as I have been having issues understanding the logic behind this.
You are by far my favorite web developer here. I can always count on your videos to clear up confusion for me!
thank you 🙏 glad to hear this helped out
Thanks for the tut, It was helpful in my project. Much love
no problem!
Quality!
Very clear and great cadence.
thank you! glad to hear that!
Hi Colby!
thank you for making this amazing video!
I just have a question.
I make a request to the login API and I receive the refresh token that is in the cookie and the access token that is in the response body. Now how should I handle the access token on the client side(next js)? If I store this in a global state like context API, then I don't have access to that state in the getServerSideProps function, and I can't set it in the request.header.authorization because getServerSideProps run on the server side and the state is on the client side!
what is the right flow for this kind of case?