IO-1145 Remove force token refresh.

This commit is contained in:
Patrick Fic
2021-05-18 13:35:48 -07:00
parent be051501ba
commit 043ee68e58
8 changed files with 11 additions and 12 deletions

View File

@@ -9,8 +9,7 @@ if (process.env.NODE_ENV === "production") {
export const axiosAuthInterceptorId = axios.interceptors.request.use(
async (config) => {
if (!config.headers.Authorization) {
const token =
auth.currentUser && (await auth.currentUser.getIdToken(true));
const token = auth.currentUser && (await auth.currentUser.getIdToken());
if (token) {
config.headers.Authorization = `Bearer ${token}`;
}