---
title: "Comment by Gabhan O'Loughlin on \"Authentication & Refresh token flow with Nextjs, Typescript, React Query and axios interceptors.\" | Hashnode"
description: "The axiosInstance.ts file no longer works with the latest React Query / Typescript (April 2023). Hopefully you can update the article. As someone who is new to"
url: "https://hashnode.com/posts/authentication-refresh-token-flow-with-nextjs-typescript-react-query-and-axios-interceptors/6371d17cfb40eef9d39b7930/comment/64396f0af49f45ac41003401"
---

[Discussion](https://hashnode.com/posts/authentication-refresh-token-flow-with-nextjs-typescript-react-query-and-axios-interceptors/6371d17cfb40eef9d39b7930)

Comment [Authentication & Refresh token flow with Nextjs, Typescript, React Query and axios interceptors.](https://hashnode.com/posts/authentication-refresh-token-flow-with-nextjs-typescript-react-query-and-axios-interceptors/6371d17cfb40eef9d39b7930)

[Gabhan O'Loughlin](https://hashnode.com/@Gabhan)

[Apr 14, 2023](https://hashnode.com/posts/authentication-refresh-token-flow-with-nextjs-typescript-react-query-and-axios-interceptors/6371d17cfb40eef9d39b7930/comment/64396f0af49f45ac41003401)

The axiosInstance.ts file no longer works with the latest React Query / Typescript (April 2023). Hopefully you can update the article. As someone who is new to React, your approach makes total sense to me, but I'm struggling to figure out how to make it work.

[K Srinivas Rao](https://hashnode.com/@srini53168)

[Sep 4, 2023](https://hashnode.com/posts/authentication-refresh-token-flow-with-nextjs-typescript-react-query-and-axios-interceptors/6371d17cfb40eef9d39b7930/comment/64396f0af49f45ac41003401#reply-64f5f212f6310e9375f96383)

Hi Gabhan,

I'll be writing a series of articles on production grade authentication which is going to cover everything in depth with the latest tools and patterns, stay tuned!
