near / near-wallet

Web wallet for NEAR Protocol which stores keys in browser's localStorage
https://wallet.near.org
MIT License
213 stars 176 forks source link

feat: email recovery link to redirect to my near wallet #3138

Closed hcho112 closed 1 month ago

hcho112 commented 1 month ago

This PR contains implementation to support existing email link recovery method by automatically redirecting to my near wallet.

To test on testnet locally, run:

yarn && NEAR_WALLET_ENV=testnet yarn start

with this link will redirect to mynearwallet testnet

I have also tested it against mainnet by:

yarn && NEAR_WALLET_ENV=mainnet_NEARORG yarn start

with mainnet account, (please ping me if you need them to test) will redirect to: Greenshot 2024-05-28 16 34 00