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: mentraos_docs/docs/react-webviews.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# React Webviews
2
2
3
-
The [`@mentraos/react`](https://www.npmjs.com/package/@mentraos/react) library simplifies building React-based webviews that integrate seamlessly with MentraOS authentication. When users open your webview through the MentraOS manager app, they are automatically authenticated without requiring a separate login process.
3
+
The [`@mentra/react`](https://www.npmjs.com/package/@mentra/react) library simplifies building React-based webviews that integrate seamlessly with MentraOS authentication. When users open your webview through the MentraOS manager app, they are automatically authenticated without requiring a separate login process.
4
4
5
5
## What Are React Webviews?
6
6
@@ -11,7 +11,7 @@ React webviews are web applications built with React that run inside the MentraO
11
11
-**Content Management**: Create, edit, and organize user content
12
12
-**Dashboard Interfaces**: Show personalized information and controls
13
13
14
-
The `@mentraos/react` library handles all the authentication complexity, automatically extracting and verifying user tokens from the MentraOS system.
14
+
The `@mentra/react` library handles all the authentication complexity, automatically extracting and verifying user tokens from the MentraOS system.
15
15
16
16
## Complete Example
17
17
@@ -22,11 +22,11 @@ There's a complete example of a React webview in the [`MentraOS-React-Example-Ap
22
22
Install the React authentication library in your webview project:
23
23
24
24
```bash
25
-
npm install @mentraos/react
25
+
npm install @mentra/react
26
26
# or
27
-
yarn add @mentraos/react
27
+
yarn add @mentra/react
28
28
# or
29
-
bun add @mentraos/react
29
+
bun add @mentra/react
30
30
```
31
31
32
32
## Prerequisites
@@ -46,7 +46,7 @@ The `MentraAuthProvider` component manages authentication state for your entire
0 commit comments