-
Notifications
You must be signed in to change notification settings - Fork 73
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
src/components/vm/VmInitializer.tsx
Outdated
@@ -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/', |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
src/components/vm/VmInitializer.tsx
Outdated
@@ -192,6 +193,18 @@ export default function VmInitializer() { | |||
return false; | |||
}, [saveCurrentUrl, walletModal]); | |||
|
|||
useEffect(() => { | |||
window.addEventListener( |
There was a problem hiding this comment.
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?
This PR makes some little changes to
DesktopNavigation
,useSignInRedirect
andvmInitializer
files to initiate our POC, which is an iframe/modal based authentication instead of the page-based authentication method we currently have.cc: @esaminu