mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-11-26 16:36:25 +00:00
fix(api-frontend): resolved failure in inviting existing infisical users to organization
This commit is contained in:
@@ -48,6 +48,7 @@ export default function RouteGuard({ children }) {
|
||||
// Check if the user is authenticated
|
||||
const response = await checkAuth();
|
||||
// #TODO: figure our why sometimes it doesn't output a response
|
||||
// ANS(akhilmhdh): Because inside the security client the await token() doesn't have try/catch
|
||||
if (!publicPaths.includes(path)) {
|
||||
try {
|
||||
if (response.status !== 200) {
|
||||
|
||||
Reference in New Issue
Block a user