Arif
11/05/2025, 7:18 AMhttps://dev.auth.us.<domain>/v1/auth/refresh?dcs=f&dcr=f
However, we’re receiving a 401 (Unauthorized) response.
The SSO flow itself is successful — we’re getting a 200 response from the IDP — but when this refresh API is triggered afterward, it fails with a 401.
Could you please advise if there’s any configuration or update required on our side to resolve this?
@Mike Hudson @Kenneth KnollRahul Rijhwani
11/05/2025, 7:19 AMMike Hudson
11/05/2025, 12:24 PMArif
11/06/2025, 5:56 AMRahul Rijhwani
11/06/2025, 5:58 AMArif
11/06/2025, 1:09 PMRahul Rijhwani
11/06/2025, 2:09 PMChris Carper
11/06/2025, 3:38 PMChris Carper
11/06/2025, 3:44 PMaptly-end-impersonation flow.
• 11/4 around 8:04 the user is again successfully authenticated and several refreshes over the next few hours.Chris Carper
11/06/2025, 3:45 PMChris Carper
11/06/2025, 3:47 PM.org and .com users the same when it comes to unique identifiers, so we'll always treat these as separate users; however, this could relate to the tenant SSO domain, if you have customers who use both, it's worth adding both their .org and .com domains to the SSO domains configuration for their tenant.Chris Carper
11/06/2025, 3:51 PMArif
11/07/2025, 1:11 PMhttps://dev.auth.us.<domain>/v1/auth/refresh?dcs=f&dcr=f
However, we’re receiving a 401 (Unauthorized) response. And due to that we got redirected to the login page again.
Is there anything needs to configure in flow?Chris Carper
11/10/2025, 5:37 PMisLoading is still true before rendering? CC: @Tal Kapitolnik @Reuven Zabirov for 👀 in your timezone.Arif
11/11/2025, 6:09 AMfunction App() {
const { isAuthenticated, isSessionLoading, sessionToken } = useSession();
const { isUserLoading, user } = useUser();
const { setStorageItem } = useLocalStorageHook<string>();
const isLoading = useMemo(
() => isSessionLoading || isUserLoading,
[isSessionLoading, isUserLoading],
);
const getUserRoute = useCallback(() => {
if (!isAuthenticated || !sessionToken) {
if (window.location.pathname !== "/") {
setStorageItem("nextUrl", window.location.pathname);
}
return authRoute;
}
if (!user?.userTenants || user?.userTenants?.length === 0) {
return noTenantRoute;
}
return router;
}, [isAuthenticated, sessionToken, user]);
if (isLoading) {
return (
<ThemeProvider>
<CustomLoader />
</ThemeProvider>
);
}Yes, we are using an isLoading flag before render. is there anything needs to update over there?
Arif
11/11/2025, 10:47 AMReuven Zabirov
11/11/2025, 10:52 AM/refresh is failing seems to be something wrong with the refresh token.
can you share a HAR file reproducing the issue? you can also DM it to me so it will be discreet.Reuven Zabirov
11/11/2025, 10:52 AMArif
11/11/2025, 11:31 AMReuven Zabirov
11/12/2025, 8:22 AMArif
11/12/2025, 8:43 AMArif
11/13/2025, 10:52 AMReuven Zabirov
11/13/2025, 10:53 AMArif
11/13/2025, 11:02 AMReuven Zabirov
11/13/2025, 1:37 PM