Skip to content

Commit

Permalink
Merge pull request #139 from eduversa/ankur
Browse files Browse the repository at this point in the history
fix: Ensure platformName is stored in localStorage during social logi…
  • Loading branch information
eduversa authored Nov 10, 2024
2 parents 2182587 + 2c7eb17 commit 1c50252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ function Login() {
};

const handleSocialLogin = async (provider) => {
await signIn(provider);
localStorage.setItem("platformName", provider);
await signIn(provider);
};

const handleSocialLoginClick = (provider) => {
Expand Down
1 change: 1 addition & 0 deletions pages/register/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function Register() {

useEffect(() => {
const platformName = localStorage.getItem("platformName");
console.log("platformName--->", platformName);
if (session) {
if (process.env.NODE_ENV === "development") {
devLog("Session detected:", session);
Expand Down

0 comments on commit 1c50252

Please sign in to comment.