29.0.2 • Published 8 days ago

@magic-sdk/react-native-expo v29.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 days ago

✨ Magic Authentication JavaScript SDK

<MagicLabs>

Magic empowers developers to protect their users via an innovative, passwordless authentication flow without the UX compromises that burden traditional OAuth implementations.

⚠️ Major Change: Package Split Beta ⚠️

Please note that splitting the Expo and Bare React Native Magic package is a part of a beta release. Take whatever precautions necessary to verify use before installing on your production application. As always, in the case something goes awry, you may open an issue and revert your package to the previous pre-split stable version magic-sdk/react-native@x.x.x.

📖 Documentation

See the developer documentation to learn how you can master the Magic SDK in a matter of minutes.

🔗 Installation

Integrating your app with Magic will require our client-side NPM package:

# Via NPM:
npm install --save @magic-sdk/react-native-expo
# Via Yarn:
yarn add @magic-sdk/react-native-expo

⚡️ Quick Start

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-expo';
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' });

🙌🏾 Troubleshooting

Symlinking in Monorepo w/ Metro

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.

29.0.2

1 month ago

29.0.1

2 months ago

29.0.0

2 months ago

28.0.0

2 months ago

27.0.0

2 months ago

25.0.0

2 months ago

26.0.0

2 months ago

24.0.0

2 months ago

23.1.1

3 months ago

23.1.0

3 months ago

23.0.1

3 months ago

23.0.0

4 months ago

22.5.0

4 months ago

22.4.1

5 months ago

22.4.0

5 months ago

22.4.4

5 months ago

21.0.2

8 months ago

21.0.1

8 months ago

21.0.3

7 months ago

21.0.0

8 months ago

20.2.0

9 months ago

21.1.1

7 months ago

21.1.0

7 months ago

20.3.1

9 months ago

20.3.0

9 months ago

22.0.0

7 months ago

19.6.0

10 months ago

20.4.0

8 months ago

22.1.1

7 months ago

22.1.0

7 months ago

19.5.0

10 months ago

22.2.1

6 months ago

22.2.0

7 months ago

19.4.1

10 months ago

19.4.0

10 months ago

19.4.2

10 months ago

22.2.2

6 months ago

19.3.0

10 months ago

22.3.0

6 months ago

22.3.4

5 months ago

22.3.2

5 months ago

19.2.1

10 months ago

20.0.0

10 months ago

20.1.0

9 months ago

19.2.0

11 months ago

19.1.0

11 months ago

19.0.1

11 months ago

19.0.0

11 months ago

19.0.2

11 months ago

18.2.3

12 months ago

18.4.0

12 months ago

18.2.2

12 months ago

18.2.1

12 months ago

18.2.0

12 months ago

18.5.0

11 months ago

18.3.1

12 months ago

18.3.0

12 months ago

18.0.0

1 year ago

14.5.0

1 year ago

17.3.0

1 year ago

17.1.0

1 year ago

16.1.0

1 year ago

15.0.0

1 year ago

18.1.2

1 year ago

18.1.1

1 year ago

18.1.0

1 year ago

14.6.0

1 year ago

14.6.1

1 year ago

14.6.2

1 year ago

17.2.0

1 year ago

17.0.1

1 year ago

17.0.0

1 year ago

16.0.0

1 year ago

14.2.0

1 year ago

14.3.0

1 year ago

14.4.0

1 year ago

14.1.0

1 year ago

14.0.1-903c2bf

1 year ago

14.0.0

1 year ago

13.1.1

1 year ago

13.1.1-9591571

1 year ago

13.1.1-c6b94c1

1 year ago

13.1.1-eebe81d

1 year ago

13.1.0

1 year ago

13.0.3

1 year ago

13.0.2

1 year ago

13.0.1

1 year ago

12.0.6

1 year ago

12.0.5

1 year ago

12.0.4

1 year ago

12.0.3

1 year ago

12.0.2

1 year ago

12.0.1

1 year ago