We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d92895 commit 5b5b241Copy full SHA for 5b5b241
src/state/KindeProvider.tsx
@@ -581,7 +581,8 @@ export const KindeProvider = ({
581
}
582
583
const hasCode = params.has("code");
584
- if (!hasCode) {
+ const isOnRedirectUri = window.location.href.startsWith(redirectUri);
585
+ if (!hasCode || !isOnRedirectUri) {
586
try {
587
const user = await getUserProfile();
588
if (user) {
0 commit comments