Skip to content

Commit

Permalink
show wallet address on successful auth
Browse files Browse the repository at this point in the history
  • Loading branch information
MoizAhmedd committed Oct 23, 2024
1 parent 55bf816 commit 7bfb7dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Auth/SuccessPage.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
// src/components/SuccessPage.tsx
import React from "react";
import { useAuthContext } from "../../context/AuthContext";

const SuccessPage: React.FC = () => {
const { user } = useAuthContext(); // Get verifyOtp from the context
return (
<div className="text-green-500 text-lg">
Authentication successful! You are logged in.
<br></br>
Wallet Address:{user?.walletAddress}
</div>
);
};
Expand Down

0 comments on commit 7bfb7dc

Please sign in to comment.