KSHey, This code does have some flaws, it is meant for explaining the concept to someone starting out. 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!Reply·Article·Sep 4, 2023·Authentication & Refresh token flow with Nextjs, Typescript, React Query and axios interceptors.
KSHey, 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!Reply·Article·Sep 4, 2023·Authentication & Refresh token flow with Nextjs, Typescript, React Query and axios interceptors.
KSYou can find it on my blog profileReply·Article·Sep 4, 2023·Authentication & Refresh token flow with Nextjs, Typescript, React Query and axios interceptors.
KSHi 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!Reply·Article·Sep 4, 2023·Authentication & Refresh token flow with Nextjs, Typescript, React Query and axios interceptors.
KSSure, coming soon...Reply·Article·Nov 15, 2022·Authentication & Refresh token flow with Nextjs, Typescript, React Query and axios interceptors.
KSAh, yes.. Great suggestion... It's never a good idea to store the tokens on frontend. But I wanted to explain only the frontend side of the authentication in a visual manner, that's why I went with it. I'll explore the full stack side of it another day in a more secure way.Reply·Article·Nov 15, 2022·Authentication & Refresh token flow with Nextjs, Typescript, React Query and axios interceptors.