Skip to content

Commit

Permalink
fixes nextjs docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Nov 17, 2023
1 parent 277dc4d commit 5eb9641
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions v2/emailpassword/nextjs/app-directory/protecting-route.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const TryRefreshComponent = () => {
.catch(() => {
setDidError(true);
});
}, []);
}, [router]);

/**
* We add this check to make sure we handle the case where the refresh API fails with
Expand Down Expand Up @@ -310,7 +310,7 @@ export const TryRefreshComponent = () => {
.catch(() => {
setDidError(true);
});
}, []);
}, [router]);

if (didError) {
return <div>Something went wrong, please reload the page</div>;
Expand Down
4 changes: 2 additions & 2 deletions v2/passwordless/nextjs/app-directory/protecting-route.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const TryRefreshComponent = () => {
.catch(() => {
setDidError(true);
});
}, []);
}, [router]);

/**
* We add this check to make sure we handle the case where the refresh API fails with
Expand Down Expand Up @@ -310,7 +310,7 @@ export const TryRefreshComponent = () => {
.catch(() => {
setDidError(true);
});
}, []);
}, [router]);

if (didError) {
return <div>Something went wrong, please reload the page</div>;
Expand Down
4 changes: 2 additions & 2 deletions v2/thirdparty/nextjs/app-directory/protecting-route.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const TryRefreshComponent = () => {
.catch(() => {
setDidError(true);
});
}, []);
}, [router]);

/**
* We add this check to make sure we handle the case where the refresh API fails with
Expand Down Expand Up @@ -310,7 +310,7 @@ export const TryRefreshComponent = () => {
.catch(() => {
setDidError(true);
});
}, []);
}, [router]);

if (didError) {
return <div>Something went wrong, please reload the page</div>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const TryRefreshComponent = () => {
.catch(() => {
setDidError(true);
});
}, []);
}, [router]);

/**
* We add this check to make sure we handle the case where the refresh API fails with
Expand Down Expand Up @@ -311,7 +311,7 @@ export const TryRefreshComponent = () => {
.catch(() => {
setDidError(true);
});
}, []);
}, [router]);

if (didError) {
return <div>Something went wrong, please reload the page</div>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const TryRefreshComponent = () => {
.catch(() => {
setDidError(true);
});
}, []);
}, [router]);

/**
* We add this check to make sure we handle the case where the refresh API fails with
Expand Down Expand Up @@ -310,7 +310,7 @@ export const TryRefreshComponent = () => {
.catch(() => {
setDidError(true);
});
}, []);
}, [router]);

if (didError) {
return <div>Something went wrong, please reload the page</div>;
Expand Down

0 comments on commit 5eb9641

Please sign in to comment.