25.0.2 โ€ข Published 8 days ago

@magic-ext/react-native-expo-oauth v25.0.2

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

๐Ÿ”’ Magic OAuth Extension for React Native (Expo)

<MagicLabs>

With the Magic JavaScript SDK OAuth extension, you can plug into your favorite social login providers with one, easy-to-use API.

๐Ÿ“– Documentation

See the developer documentation to learn how to get started with OAuth in Magic SDK.

๐Ÿ”— Installation

Integrating your app with OAuth will require our client-side NPM package and OAuth extension:

# Via NPM:
npm install --save @magic-ext/react-native-expo-oauth

# Via Yarn:
yarn add @magic-ext/react-native-expo-oauth

โš ๏ธ This library can only be used on an Expo project that uses @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';
import { OAuthExtension } from "@magic-ext/react-native-expo-oauth";
import { SafeAreaProvider } from 'react-native-safe-area-context';

const magic = new Magic(apiKey, {
    endpoint: 'https://box.magic.link',
    extensions: [
        new OAuthExtension()
    ],
});

export default function App() {
    return <>
        <SafeAreaProvider>
            {/* Render the Magic iframe! */}
            <magic.Relayer />
            {...}
        </SafeAreaProvider>
    </>
}

// Somewhere else in your code...
await magic.auth.loginWithEmailOTP({ email: 'your.email@example.com' });

โ โ ๐Ÿ‘‰ Check out some of our React Native Demo apps for inspiration! ๐Ÿ‘€

25.0.2

1 month ago

25.0.1

2 months ago

25.0.0

2 months ago

24.0.0

2 months ago

23.0.0

2 months ago

21.0.0

2 months ago

22.0.0

2 months ago

20.0.0

2 months ago

19.1.1

3 months ago

19.1.0

3 months ago

19.0.1

3 months ago

19.0.0

4 months ago

18.2.0

4 months ago

18.1.1

5 months ago

18.1.0

5 months ago

13.3.0

10 months ago

14.1.0

9 months ago

15.0.2

8 months ago

15.0.3

7 months ago

15.0.0

8 months ago

15.0.1

8 months ago

13.4.8

10 months ago

13.4.6

10 months ago

13.4.7

10 months ago

13.4.4

10 months ago

13.4.5

10 months ago

13.4.2

10 months ago

13.4.3

10 months ago

13.4.0

10 months ago

13.4.1

10 months ago

14.2.0

9 months ago

18.0.3

5 months ago

18.0.2

5 months ago

18.0.1

6 months ago

18.0.0

6 months ago

17.1.0

6 months ago

14.0.0

10 months ago

13.2.1

10 months ago

16.1.1

7 months ago

16.1.0

7 months ago

17.0.2

6 months ago

17.0.1

6 months ago

17.0.0

6 months ago

16.2.0

7 months ago

16.2.1

6 months ago

15.1.1

7 months ago

15.1.0

7 months ago

13.5.0

10 months ago

14.3.0

9 months ago

14.3.1

9 months ago

13.6.0

10 months ago

14.4.0

8 months ago

16.0.0

7 months ago

13.1.0

11 months ago

13.2.0

11 months ago

12.2.1

12 months ago

12.4.0

12 months ago

12.2.2

12 months ago

12.2.3

12 months ago

12.2.0

12 months ago

13.0.2

11 months ago

13.0.0

11 months ago

13.0.1

11 months ago

12.3.0

12 months ago

12.3.1

12 months ago

12.5.0

11 months ago

10.0.0

1 year ago

10.1.0

1 year ago

8.7.2

1 year ago

8.7.1

1 year ago

8.7.0

1 year ago

8.6.0

1 year ago

12.1.2

1 year ago

12.0.0

1 year ago

12.1.0

1 year ago

12.1.1

1 year ago

9.0.0

1 year ago

11.2.0

1 year ago

11.3.0

1 year ago

11.0.0

1 year ago

11.1.0

1 year ago

11.0.1

1 year ago

8.5.0

1 year ago

8.4.0

1 year ago

8.3.0

1 year ago

8.2.0

1 year ago

8.1.0

1 year ago

8.0.0

1 year ago

7.1.1

1 year ago

7.1.0

1 year ago

7.0.0

1 year ago