Fix isLoggedin auth action (#4085)

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates the authentication logic in `auth-actions.ts` to check for a matching creatorWalletAddress in the JSON data.

### Detailed summary
- Updated condition to check for `creatorWalletAddress` in JSON data instead of `address`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
This commit is contained in:
MananTank
2024-08-13 17:45:31 +00:00
parent 74c6bca538
commit e91421a252
+1 -1
View File
@@ -197,7 +197,7 @@ export async function isLoggedIn(address: string) {
return false;
}
// if the address matches what we expect, we're logged in
if (getAddress(json.address) === getAddress(address)) {
if (getAddress(json.data.creatorWalletAddress) === getAddress(address)) {
// set the active account cookie again
cookieStore.set(COOKIE_ACTIVE_ACCOUNT, getAddress(address), {
httpOnly: false,