Skip to content

Commit

Permalink
Merge branch 'main' into feat-specific-route-protection
Browse files Browse the repository at this point in the history
  • Loading branch information
massoudmaboudi committed Jun 2, 2023
2 parents e3ee773 + d6ec293 commit 403689b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Introduction

![Alt text](static/img/Docusaurus%20Authentication.png)
![Alt text](static/img/docusaurus-auth-cognito.png)

- [Introduction](#introduction)
- [Branch Setup](#branch-setup)
Expand Down
1 change: 1 addition & 0 deletions src/components/Auth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export function AuthCheck({ children }) {
} else {
if (from === LOGOUT_PATH) return <Redirect to={BASE} from={from} />;
else if (PROTECTED_PATHS.filter(x => from.includes(x)).length) return <Login />;
else if (from === LOGIN_PATH) return <Login />;
return children;
}
}
Expand Down
Binary file removed static/img/Docusaurus Authentication.png
Binary file not shown.
Binary file added static/img/docusaurus-auth-cognito.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 403689b

Please sign in to comment.