Skip to content

Commit

Permalink
Implemented otp based login functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourabh782 committed Nov 10, 2024
1 parent d18201b commit 768bf0e
Show file tree
Hide file tree
Showing 14 changed files with 656 additions and 35 deletions.
190 changes: 188 additions & 2 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"socket.io": "^4.7.5",
"socket.io-client": "^4.8.1",
"sort-by": "^0.0.2",
"twilio": "^5.3.5",
"uuid": "^11.0.2",
"yup": "^1.4.0"
},
Expand Down
2 changes: 2 additions & 0 deletions client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import Collab from "./component/Collab";
import Ai from "./component/Ai";
import FAQ from "./component/Faq";
import CreateBlog from "./component/CreateBlog";
import LoginOTP from "./component/LoginPhone";

// Main Layout Component
const Layout = ({ children, mode, setProgress, toggleMode, showAlert }) => {
Expand Down Expand Up @@ -249,6 +250,7 @@ function App() {
<Route exact path='/editprofile' element={<EditProfile mode={mode} setProgress={setProgress} showAlert={showAlert} />} />
<Route exact path='/contributors' element={<Contributors mode={mode} setProgress={setProgress} showAlert={showAlert} />} />
<Route exact path="/login" element={<Login mode={mode} setProgress={setProgress} showAlert={showAlert} loggedin={islogged} setloggedin={setloggedin} />} />
<Route exact path="/login-otp" element={<LoginOTP mode={mode} setProgress={setProgress} showAlert={showAlert} loggedin={islogged} setloggedin={setloggedin} />} />
<Route exact path='/signup' element={<Signup mode={mode} setProgress={setProgress} showAlert={showAlert} />} />
<Route exact path='/forgot-password' element={<ForgotPassword mode={mode} setProgress={setProgress} showAlert={showAlert} />} />
<Route exact path='/reset-password' element={<ResetPassword mode={mode} setProgress={setProgress} showAlert={showAlert} />} />
Expand Down
Loading

0 comments on commit 768bf0e

Please sign in to comment.