Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a iframe based fastAuth & Wallet authentication modal #1017

Merged
merged 7 commits into from
Mar 4, 2024

Conversation

benmalcom
Copy link
Contributor

This PR makes some little changes to DesktopNavigation, useSignInRedirect and vmInitializer files to initiate our POC, which is an iframe/modal based authentication instead of the page-based authentication method we currently have.

cc: @esaminu

@benmalcom benmalcom added the enhancement To highlight a PR's description in the 'Enhancements' changelog section label Feb 29, 2024
Copy link

vercel bot commented Feb 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
near-discovery ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2024 7:49pm
near-discovery-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2024 7:49pm

@@ -88,6 +88,7 @@ export default function VmInitializer() {
networkId === 'testnet'
? 'http://34.70.226.83:3030/relay'
: 'https://near-relayer-mainnet.api.pagoda.co/relay',
walletUrl: 'https://fast-auth-signer-git-upgrade-impr-2ac97a-near-developer-console.vercel.app/',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will we point the walletURL to a specific commit in prod? Or it's test code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's for testing of the preview

@@ -192,6 +193,18 @@ export default function VmInitializer() {
return false;
}, [saveCurrentUrl, walletModal]);

useEffect(() => {
window.addEventListener(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need to clean up this event listener when the component unmount?

@esaminu esaminu marked this pull request as draft February 29, 2024 19:19
@esaminu esaminu marked this pull request as ready for review March 1, 2024 01:36
@charleslavon charleslavon changed the title Put fast auth signer Introduce a iframe based fastAuth & Wallet authentication modal Mar 4, 2024
@benmalcom benmalcom merged commit 8cc6da7 into develop Mar 4, 2024
8 checks passed
@benmalcom benmalcom deleted the enhancement/put-signer-in-iframe branch March 4, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement To highlight a PR's description in the 'Enhancements' changelog section
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants