Stand-With-Crypto / swc-web

Stand With Crypto's codebase, open sourced for community collaboration. If you care about crypto, it's time to prove it.
https://www.standwithcrypto.org/
Apache License 2.0
20 stars 4 forks source link

User Profile not editable when user is logged in using query parameters #1320

Closed mhamendes closed 1 week ago

mhamendes commented 2 weeks ago

When the user is logged in using sessionId and userId query parameters, the profile page still shows the unauthenticated component for the EditProfile component.

twistershark commented 1 week ago

This would change our current rules for this.

https://github.com/Stand-With-Crypto/swc-web/blob/5eb2b7591ed9562fe75136c71aa2219fe5140a55/src/components/app/pageUserProfile/index.tsx#L92

To change the behaviour, the change here would be to just remove the useThirdwebSession param and the LoginDialogWrapper component would verify that the user is logged in.

@travisbloom-cb Can we have your opinion on this?

twistershark commented 1 week ago

I did some testing and I think that we prob won't want to change the current behavior because of the following scenario:

(I'm not sure what happens if the user never log in using a wallet. If I'm not mistaken, we will wait until the user connects a wallet to send all pending NFTs, but not 100% sure yet)

twistershark commented 1 week ago

Closed by https://github.com/Stand-With-Crypto/swc-web/pull/1360