You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MIGRATION_GUIDE.md
+1-11Lines changed: 1 addition & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,17 +113,7 @@ On React Native Web, the `authorize()` method now triggers a **full-page redirec
113
113
114
114
**✅ Action Required:** Review the new **[FAQ entry](#faq-authorize-web)** for guidance on how to correctly handle the post-login flow on the web. The `Auth0Provider` and `useAuth0` hook are designed to manage this flow automatically.
115
115
116
-
### Change #5: New Peer Dependency for Web Support
117
-
118
-
To support the web platform, the library now has an **optional peer dependency** on `@auth0/auth0-spa-js`.
119
-
120
-
**✅ Action Required:** If you are using `react-native-auth0`in a React Native Web project, you **must** install this package. Native-only projects can ignore this.
121
-
122
-
```bash
123
-
npm install @auth0/auth0-spa-js
124
-
```
125
-
126
-
### Change #6: Hook Methods Now Throw Error
116
+
### Change #5: Hook Methods Now Throw Error
127
117
128
118
Previously, all hook-related methods such as `getCredentials()`, `saveCredentials()`, etc., did not throw error directly. Instead, any issues were silently handled and surfaced via the error property in`useAuth0()`:
React Native Auth0 requires `@auth0/auth0-spa-js` for web platform support:
23
-
24
-
```bash
25
-
# Using npm
26
-
npm install @auth0/auth0-spa-js
27
-
28
-
# Using yarn
29
-
yarn add @auth0/auth0-spa-js
30
-
```
31
-
32
-
### 3. Use React Native Auth0
20
+
### 2. Use React Native Auth0
33
21
34
22
Once React Native Web and Auth0 SPA JS are installed, you can use React Native Auth0 exactly as you would in a native React Native app. The library will automatically detect the web platform and use the appropriate implementation.
0 commit comments