hypha-dao / hypha-wallet

Hypha Wallet - Authenticator - All the things.
3 stars 2 forks source link

Process invite link when user already has an account #220

Open n13 opened 1 year ago

n13 commented 1 year ago

Steps to reproduce:

1 - I already have an account on a network - say telos mainnet - and I am logged in 2 - Wallet app is opened by an invite link with an enroller secret

Expected:

Bottom Sheet - do you want to join DAO "X" (whatever the dAO name is)

Yes / Cancel

Then signs person into dao using secret

Actual: Wallet enters "create account" screen

n13 commented 12 months ago

Note: Parse daoName for the name o fthe dao, since "dao" is the identifier

We could also take dao and look up the nam ebut since we get it anyway

crazy long link thanks to AWS resources.

Not sure we need those. Probably not for now.

I think this is because the website will show another image

https://join.hypha.earth/?url=https%3A%2F%2Fhyphawallet.page.link%2F%3Flink%3Dhttps%253A%252F%252Fhypha.earth%252Finvite%253Fcode%253DSXIRYUOJ5L%2526chain%253DtelosTestnet%2526dao%253D39815%2526enroll_secret%253D6105358a482101f09f32499fec8e8254c20427bbe3938944000d4e6d3c1ac551%26apn%3Dearth.hypha.wallet.hypha_wallet%26isi%3D1659926348%26ibi%3Dearth.hypha.wallet.hyphaWallet%26cid%3D866980350130875998%26_osl%3Dhttps%3A%2F%2Fhyphawallet.page.link%2FKPo2%26_icp%3D1&daoName=DAO4&daoDescription=DAO4&daoLogo=undefined&coreMemberCount=2&communityMemberCount=0&inviterName=Tod+Fungus&inviterAvatar=https%3A%2F%2Fppp-service-dev-attachmentsbucket-1mf7xzdc3x721.s3.amazonaws.com%2Fprotected%2Fus-east-1%253A89e0c952-67bd-4823-9b57-fe1d6da534b8%2Fdaohyphatest-1674074093738.png%3FX-Amz-Algorithm%3DAWS4-HMAC-SHA256%26X-Amz-Credential%3DASIA5I7ZHHZDOPQNOUNN%252F20230920%252Fus-east-1%252Fs3%252Faws4_request%26X-Amz-Date%3D20230920T234059Z%26X-Amz-Expires%3D900%26X-Amz-Security-Token%3DIQoJb3JpZ2luX2VjEPj%252F%252F%252F%252F%252F%252F%252F%252F%252F%252FwEaCXVzLWVhc3QtMSJHMEUCIQCypA9ZVEhKOUEJijBU%252Bt4IqhMMCgDQerBOcf05tP1mcgIgOEEagekMTLxD3ibu64%252BitvAItEJ4lTyVsuUQKpqp6fYq0wUI4f%252F%252F%252F%252F%252F%252F%252F%252F%252F%252FARADGgw5MTI2NjYzNDUwMzAiDL%252B%252FdDdhLd%252Forxv3MyqnBZkxbwlcNBZt3YPUDDu8ssOTijl4iCKP7HuYhoMKZTtN3qA5uHFdgoVTL435wPvC%252BUndKnfG8z0daxJ1bFczRyb24QxRMdiJBmTBsZBFMJ16%252F0KBySEbuxm1ww7hjvr33txiKzDAmuk1rbM9ioJb29zZX8HQPFp4om2rBeUKpFlVxgNNNfOrgaulda37OUMKNDn9jLZBl%252Fe4iQe7Pp5Ku%252Bdv%252BL7kkNHNvDNvoRGTWr5WK5m7fXKxo3jhvI3S%252FJNDv1iHhqMk%252FBfSRCorPFWfSH39uebPDrpseraDOWyAzAjVGnPg3zT1roq%252FK16QxLePl%252Fie2mfoohqHABAcuw%252Bd9z%252BqnpqLzhR7xBgIxkDSw%252FtgBcCYg8SDKhSP9%252F4sFYm9Loi9QwDgHOn0HrK7dfQybAvFg04QoU%252B6wziZJBPvYerrxsRTgBHpvcR1ORKbS%252BT5bRoi63MY6E5nBAjv6V7ZbGLiRgcL7kiebbAjNtx5%252BOnIuHQhc0Cl3YAeEiyPTknbmXPWyYyi3pmRnMiPj8HTPJsEHNlP%252FTAH4gE%252BvRztc7Sajlq%252BI8ulv8kZPBRXnM1lTyKCkzsXJBaYDXgxdWKjvMjtDW1fpSgSsL1kyJ0iH2q7rjyhGh1vkzr16ez5tB4Sta45zsVGEryjYp5nvS4DZ72VUKgfMY%252Fw4QvFo3wr%252BewLxn%252FRRPeePjyNUhnWi5hw%252Bcnn9L8mTJVQRqHUhf1IvmEQOfmQCCUQfcnFhWyQ998YjClzGA5fBhVrWxDhB3%252B%252FANaciE8ZlIGgOyPpXLbl8iQUViYfDw6V4UvUfVIatSNyWHjYftBru6iF6BWqIs4hAkUenxUOJF0yaBjkaItiaku7hTMH6%252FC1hMH63YfmylTwpZJ7SH1krsEsMPGhv%252F3adCNy73bw4hgwioauqAY63AJ6BdnjkqQANl2DQfLxRiEQZtQMSHne4f5k28e%252FVbz%252FLRZ86Y2%252Fi3yuk5AcnpoqvFzYormO5Hucaic8xPIIzOc4XI8VlU0axyKryMw%252FpqaU9ihYDSWwt3J%252FcQDfcJ%252BLzeQGB6FkdrqtNRygxekDOV44Nkhg8dOJP5I8Y9l47TABsVkLeMkkH6RHAfSvIAi0J7WGO4G%252FioZknUYh3zmnS%252F%252BUQrYL3DWXOO1jzJAJ5mohvE%252BPjqtOPChRZx47g%252BzD%252BXjGYO9HOI6WNg0r33mzNL83a4j5pdtNMdVwFlDmGPji23oXtOUSb1rOIgr%252FkPsBo64hqWG5Hts38eEuETIipktqmE%252BVpIBKelGB0JQB0DeR3C6Ca%252FggBhkyAH5LjUBkqshL2EEIkHGFx0zdDDNYBPaZQ05SXsJheE6QAmnqDIGIKPi7Kj0Pi0djpKd6J8FSUx2Av%252FiEdlNCfXp8HX0%253D%26X-Amz-Signature%3Db9e47b2cc7907d9d36eea685982b49bc860609749465f726e8db501f24703af6%26X-Amz-SignedHeaders%3Dhost

n13 commented 12 months ago

This is what the website shows (it should show the avatar image but I think AWS resource links expire...)

Given the below, I think our display is just fine - We could show who was inviting us but not needed. Discord doesn't have that either. Just the popup, and parse daoName so we don't show "dao"...

image