chore(ui): block loggedInUser api for auth/callback route (#15707)

This commit is contained in:
Chirag Madlani 2024-03-27 12:37:56 +05:30 committed by GitHub
parent 0532bb1226
commit d52bf7aacb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 13 deletions

View File

@ -530,7 +530,9 @@ export const AuthProvider = ({
}
setLoading(false);
} else {
getLoggedInUserDetails();
if (location.pathname !== ROUTES.AUTH_CALLBACK) {
getLoggedInUserDetails();
}
}
} else {
// provider is either null or not supported

View File

@ -10,18 +10,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Copyright 2021 Collate
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React, { useEffect } from 'react';
import { useTranslation } from 'react-i18next';