This document provides an overview of the authentication flow and session management in a Next.js application using Firebase.
where should I use AuthComp? in the layout?
Layout is a good place. just make sure it renders somwhere.
Is there any way to setup an axios interceptor that uses the id token and runs on the server and the client? Is it possible to refresh the token on the server before it is expired?
Not sure about the Axios, but in this docs we do refresh the token before it expires.
where should I use AuthComp? in the layout?
Layout is a good place. just make sure it renders somwhere.
Is there any way to setup an axios interceptor that uses the id token and runs on the server and the client? Is it possible to refresh the token on the server before it is expired?
Not sure about the Axios, but in this docs we do refresh the token before it expires.