
Security News
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.
edge-login-ui-react
Advanced tools
This library exports a collection of React components which implement the Edge login user interface. These components are currently compatible with the web version of React, but we will eventually merge the React Native components into this library as well.
If you are building your project for the web, consider using edge-login-ui-web instead of this library. That library bundles these components in a way that provides a simpler coding interface and better security.
Install this library into your project using a tool like NPM or Yarn, and then import it into your project:
import { LoginScreen, AccountScreen } from 'edge-login-ui-react'
You will also have to import edge-login-ui-react/lib/styles.css into your HTML for these components to receive the proper CSS styling. You will also need the following line for mobile responsiveness:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
This library provides the following components:
You can render them in the normal way:
// Inside some React component:
render () {
return (
<LoginScreen
accountOptions={{}}
context={this.props.context}
onClose={this.onClose}
onError={this.onError}
onLogin={this.onLogin}
vendorName={strings.APP_NAME}
vendorImageUrl={strings.APP_LOGO}
/>
)
}
The LoginScreen component accepts the following props:
accountOptions - An EdgeAccountOptions structure to pass to the EdgeAccount object on login.context - An EdgeContext object, created using the makeEdgeAccount function from edge-core-js.onClose - Called when the user closes the window.onError - Called if the screen encounters an error.onLogin - Receives an EdgeAccount object when the user logs in.vendorImageUrl - A logo to display at the top of the window.vendorName - An application name to display in the window.The AccountScreen component accepts the following props:
account - An EdgeAccount object for the logged-in user.context - The EdgeContext that was used to log the user in.onClose - Called when the user closes the window.onError - Called if the screen encounters an error.vendorImageUrl - A logo to display at the top of the window.vendorName - An application name to display in the window.Run yarn to install the project depenencies and perform the initial build. Then use yarn start to launch a development server.
FAQs
Edge login UI, as React components
The npm package edge-login-ui-react receives a total of 21 weekly downloads. As such, edge-login-ui-react popularity was classified as not popular.
We found that edge-login-ui-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.