@magic-ext/react-native-bare-oauth 17.0.1 โ†’ 17.0.2-canary.666.6884351785.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +64 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,5 +1,67 @@
1
-
2
1
 
3
-
4
2
 
5
3
 
4
+
5
+
6
+ # ๐Ÿ”’ Magic OAuth Extension for React Native (Bare)
7
+
8
+ [![<MagicLabs>](https://circleci.com/gh/magiclabs/magic-js.svg?style=shield)](https://circleci.com/gh/magiclabs/magic-js)
9
+
10
+ > With the Magic JavaScript SDK OAuth extension, you can plug into your favorite social login providers with one, easy-to-use API.
11
+
12
+ <p align="center">
13
+ <a href="https://github.com/magiclabs/magic-js/blob/master/packages/@magic-ext/oauth/LICENSE">License</a> ยท
14
+ <a href="https://github.com/magiclabs/magic-js/blob/master/packages/@magic-ext/oauth/CHANGELOG.md">Changelog</a> ยท
15
+ <a href="https://github.com/magiclabs/magic-js/blob/master/CONTRIBUTING.md">Contributing Guide</a>
16
+ </p>
17
+
18
+ ## ๐Ÿ“– Documentation
19
+
20
+ See the [developer documentation](https://magic.link/docs/social-login) to learn how to get started with OAuth in Magic SDK.
21
+
22
+ ## ๐Ÿ”— Installation
23
+
24
+ Integrating your app with OAuth will require our client-side NPM package and OAuth extension:
25
+
26
+ ```bash
27
+ # Via NPM:
28
+ npm install --save @magic-ext/react-native-bare-oauth
29
+
30
+ # Via Yarn:
31
+ yarn add @magic-ext/react-native-bare-oauth
32
+ ```
33
+ ### โš ๏ธ This library can only be used on a bare react native project that uses [@magic-sdk/react-native-bare](https://github.com/magiclabs/magic-js/tree/master/packages/%40magic-sdk/react-native-bare).
34
+
35
+ ## โšก๏ธ Quick Start
36
+
37
+ Sign up or log in to the [developer dashboard](https://dashboard.magic.link ) to receive API keys that will allow your application to interact with Magic's authentication APIs.
38
+
39
+ Then, you can start authenticating users with _just one method!_
40
+
41
+ ```tsx
42
+ import React from 'react';
43
+ import { Magic } from '@magic-sdk/react-native-bare';
44
+ import { OAuthExtension } from "@magic-ext/react-native-bare-oauth";
45
+ import { SafeAreaProvider } from 'react-native-safe-area-context';
46
+
47
+ const magic = new Magic(apiKey, {
48
+ endpoint: 'https://box.magic.link',
49
+ extensions: [
50
+ new OAuthExtension()
51
+ ],
52
+ });
53
+
54
+ export default function App() {
55
+ return <>
56
+ <SafeAreaProvider>
57
+ {/* Render the Magic iframe! */}
58
+ <magic.Relayer />
59
+ {...}
60
+ </SafeAreaProvider>
61
+ </>
62
+ }
63
+
64
+ // Somewhere else in your code...
65
+ await magic.auth.loginWithEmailOTP({ email: 'your.email@example.com' });
66
+ ```
67
+ โ โ ๐Ÿ‘‰ Check out some of our [React Native Demo apps](https://github.com/magiclabs/react-native-demo) for inspiration! ๐Ÿ‘€
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magic-ext/react-native-bare-oauth",
3
- "version": "17.0.1",
3
+ "version": "17.0.2-canary.666.6884351785.0",
4
4
  "description": "Magic SDK OAuth Extension for Bare React Native environments.",
5
5
  "author": "Magic <team@magic.link> (https://magic.link/)",
6
6
  "license": "MIT",
@@ -38,5 +38,5 @@
38
38
  "@magic-sdk/react-native-bare": ">=13.0.0",
39
39
  "react-native-inappbrowser-reborn": ">=3.7.0"
40
40
  },
41
- "gitHead": "a594e415441e8973341e90e18fe2b8d7653ce530"
41
+ "gitHead": "1c9c57306f1d88ff24f40160e892c46c727a3391"
42
42
  }