
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
@magic-sdk/react-native
Advanced tools
Magic empowers developers to protect their users via an innovative, passwordless authentication flow without the UX compromises that burden traditional OAuth implementations.
License · Changelog · Contributing Guide
Since v9.0.0
, @magic-sdk/react-native
package drops support of bare React Native (RN). You may stay on ^v8.0.0
to keep your bare RN app functional. With this in mind, bare React Native applications utlilizing OAuth should note that @magic-ext/react-native-oauth
uses expo-web-browser
as a dependency.
If this dependency causes you issues, consider enabling the expo library via npx install-expo-modules@latest
. For more context, you may check: https://docs.expo.dev/bare/installing-expo-modules.
This package will mainly support Expo framework in future releases.
See the developer documentation to learn how you can master the Magic SDK in a matter of minutes.
Integrating your app with Magic will require our client-side NPM package:
# Via NPM:
npm install --save @magic-sdk/react-native
# Via Yarn:
yarn add @magic-sdk/react-native
Sign up or log in to the developer dashboard to receive API keys that will allow your application to interact with Magic's authentication APIs.
Then, you can start authenticating users with just one method!
import React from 'react';
import { Magic } from '@magic-sdk/react-native';
const magic = new Magic('YOUR_API_KEY');
export default function App() {
return <>
{/* Render the Magic iframe! */}
<magic.Relayer />
{...}
</>
}
// Somewhere else in your code...
await magic.auth.loginWithMagicLink({ email: 'your.email@example.com' });
For React Native projects living within a monorepo that run into the following TypeError: Undefined is not an object
error:
When attempting to import Magic
, take note that the React Native metro bundler doesn’t work well with symlinks, which tend to be utilized by most package managers.
For this issue consider using Microsoft's rnx-kit suite of tools that include a plugin for metro that fixes this symlink related error.
FAQs
Passwordless authentication for React Native.
The npm package @magic-sdk/react-native receives a total of 0 weekly downloads. As such, @magic-sdk/react-native popularity was classified as not popular.
We found that @magic-sdk/react-native demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 22 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.