@mentra/react 0.2.0 → 2.0.1
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.
- package/README.md +8 -8
- package/dist/AuthProvider.js +2 -2
- package/dist/AuthProvider.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/authCore.d.ts.map +1 -1
- package/dist/lib/authCore.js +5 -6
- package/dist/lib/authCore.js.map +1 -1
- package/dist/useMentraAuth.d.ts +3 -3
- package/dist/useMentraAuth.js +5 -5
- package/dist/useMentraAuth.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,17 +41,17 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
|
|
|
41
41
|
);
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
### 2. Access authentication state using `
|
|
44
|
+
### 2. Access authentication state using `UseMentraAuth`
|
|
45
45
|
|
|
46
46
|
In any component that needs user information:
|
|
47
47
|
|
|
48
48
|
```tsx
|
|
49
49
|
// src/MyComponent.tsx
|
|
50
50
|
import React from 'react';
|
|
51
|
-
import {
|
|
51
|
+
import { UseMentraAuth } from '@mentra/react';
|
|
52
52
|
|
|
53
53
|
const MyComponent = () => {
|
|
54
|
-
const { userId, frontendToken, isLoading, error, isAuthenticated, logout } =
|
|
54
|
+
const { userId, frontendToken, isLoading, error, isAuthenticated, logout } = UseMentraAuth();
|
|
55
55
|
|
|
56
56
|
if (isLoading) {
|
|
57
57
|
return <p>Loading authentication...</p>;
|
|
@@ -92,16 +92,16 @@ export default MyComponent;
|
|
|
92
92
|
2. The `MentraAuthProvider` attempts to find this token.
|
|
93
93
|
3. It verifies the token's signature against the MentraOS Cloud public key and checks its claims (like issuer and expiration).
|
|
94
94
|
4. If valid, it extracts the `userId` (from the `sub` claim) and a `frontendToken` (another JWT from the payload).
|
|
95
|
-
5. These `userId` and `frontendToken` are then stored in `localStorage` and made available via the `
|
|
95
|
+
5. These `userId` and `frontendToken` are then stored in `localStorage` and made available via the `UseMentraAuth` hook.
|
|
96
96
|
6. If the token is not found in the URL (e.g., on a page refresh within the webview), the provider attempts to load the `userId` and `frontendToken` from `localStorage`.
|
|
97
97
|
|
|
98
98
|
## Making Authenticated Calls to Your App Backend
|
|
99
99
|
|
|
100
|
-
The `frontendToken` obtained from `
|
|
100
|
+
The `frontendToken` obtained from `UseMentraAuth` is a JWT. You should send this token in the `Authorization` header as a Bearer token when making requests from your webview to **your App's backend API**. The MentraOS SDK will automatically verify this token.
|
|
101
101
|
|
|
102
102
|
```typescript
|
|
103
103
|
// Example of an authenticated API call
|
|
104
|
-
const { frontendToken } =
|
|
104
|
+
const { frontendToken } = UseMentraAuth();
|
|
105
105
|
|
|
106
106
|
async function fetchDataFromMyBackend(): Promise<void> {
|
|
107
107
|
if (!frontendToken) {
|
|
@@ -132,7 +132,7 @@ async function fetchDataFromMyBackend(): Promise<void> {
|
|
|
132
132
|
```
|
|
133
133
|
|
|
134
134
|
> **Note:**
|
|
135
|
-
> If your
|
|
135
|
+
> If your App webview is hosted on a different domain or port than your backend API, make sure your backend's CORS (Cross-Origin Resource Sharing) policy allows requests from the webview's origin.
|
|
136
136
|
> For example, if your backend is at `https://your-app-backend.example.com` and your webview is loaded from `https://some-other-frontend.com`, your backend must explicitly allow cross-origin requests from `https://some-other-frontend.com` (or use a wildcard for development, but restrict in production).
|
|
137
137
|
>
|
|
138
138
|
> **Example in the backend:**
|
|
@@ -151,7 +151,7 @@ async function fetchDataFromMyBackend(): Promise<void> {
|
|
|
151
151
|
|
|
152
152
|
## TypeScript Support
|
|
153
153
|
|
|
154
|
-
This library includes full TypeScript support. The `
|
|
154
|
+
This library includes full TypeScript support. The `UseMentraAuth` hook returns a typed object with the following interface:
|
|
155
155
|
|
|
156
156
|
```typescript
|
|
157
157
|
interface MentraAuthContextType {
|
package/dist/AuthProvider.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
//
|
|
2
|
+
// react-sdk/src/AuthProvider.tsx
|
|
3
3
|
import { createContext, useState, useEffect, useCallback } from 'react';
|
|
4
4
|
import { initializeAuth, clearStoredAuth } from './lib/authCore';
|
|
5
5
|
export const MentraAuthContext = createContext(undefined);
|
|
@@ -17,7 +17,7 @@ export const MentraAuthProvider = ({ children }) => {
|
|
|
17
17
|
setFrontendToken(auth.frontendToken);
|
|
18
18
|
}
|
|
19
19
|
catch (e) {
|
|
20
|
-
console.error("
|
|
20
|
+
console.error("MentraOS Auth Initialization Error:", e);
|
|
21
21
|
setError(e.message || 'Unknown authentication error');
|
|
22
22
|
clearStoredAuth(); // Clear any potentially bad stored state
|
|
23
23
|
setUserId(null);
|
package/dist/AuthProvider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthProvider.js","sourceRoot":"","sources":["../src/AuthProvider.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"AuthProvider.js","sourceRoot":"","sources":["../src/AuthProvider.tsx"],"names":[],"mappings":";AAAA,iCAAiC;AACjC,OAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAa,WAAW,EAAE,MAAM,OAAO,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAE,eAAe,EAAa,MAAM,gBAAgB,CAAC;AAS5E,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAoC,SAAS,CAAC,CAAC;AAE7F,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAE,QAAQ,EAA2B,EAAE,EAAE;IAC1E,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAC1D,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IACxE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,I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AAS,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,YACpG,QAAQ,GACkB,CAC9B,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authCore.d.ts","sourceRoot":"","sources":["../../src/lib/authCore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authCore.d.ts","sourceRoot":"","sources":["../../src/lib/authCore.ts"],"names":[],"mappings":"AAkCA,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AA0DD;;;GAGG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,SAAS,CAAC,CAkCzD;AAED,wBAAgB,aAAa,IAAI,SAAS,CAIzC;AAED,wBAAgB,eAAe,IAAI,IAAI,CAGtC"}
|
package/dist/lib/authCore.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
//
|
|
1
|
+
// react-sdk/src/lib/authCore.ts
|
|
2
2
|
import { KEYUTIL, KJUR } from 'jsrsasign'; // Assuming jsrsasign is available
|
|
3
|
-
// This should be the
|
|
4
|
-
// It's a public key, so embedding it is generally fine.
|
|
3
|
+
// This should be the MentraOS Cloud's public key for verifying aos_signed_user_token
|
|
5
4
|
const userTokenPublicKeyPEM = `-----BEGIN PUBLIC KEY-----
|
|
6
5
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0Yt2RtNOdeKQxWMY0c84
|
|
7
6
|
ADpY1Jy58YWZhaEgP2A5tBwFUKgy/TH9gQLWZjQ3dQ/6XXO8qq0kluoYFqM7ZDRF
|
|
@@ -11,10 +10,10 @@ zRpQGOdqaLWe+ahHmtj6KtUZjm8o6lan4f/o08C6litizguZXuw2Nn/Kd9fFI1xF
|
|
|
11
10
|
IVNJYMy9jgGaOi71+LpGw+vIpwAawp/7IvULDppvY3DdX5nt05P1+jvVJXPxMKzD
|
|
12
11
|
TQIDAQAB
|
|
13
12
|
-----END PUBLIC KEY-----`;
|
|
14
|
-
const USER_ID_KEY = '
|
|
15
|
-
const FRONTEND_TOKEN_KEY = '
|
|
13
|
+
const USER_ID_KEY = 'mentraos_userId';
|
|
14
|
+
const FRONTEND_TOKEN_KEY = 'mentraos_frontendToken';
|
|
16
15
|
/**
|
|
17
|
-
* Verifies and parses a signed user token using the
|
|
16
|
+
* Verifies and parses a signed user token using the MentraOS Cloud public key
|
|
18
17
|
* @param signedUserToken - The JWT token to verify and parse
|
|
19
18
|
* @returns Promise that resolves to the parsed payload or null if invalid
|
|
20
19
|
*/
|
package/dist/lib/authCore.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authCore.js","sourceRoot":"","sources":["../../src/lib/authCore.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"authCore.js","sourceRoot":"","sources":["../../src/lib/authCore.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAU,MAAM,WAAW,CAAC,CAAC,kCAAkC;AAErF,qFAAqF;AACrF,MAAM,qBAAqB,GAAG;;;;;;;;yBAQL,CAAC;AAE1B,MAAM,WAAW,GAAG,iBAAiB,CAAC;AACtC,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;AAwBpD;;;;GAIG;AACH,KAAK,UAAU,mBA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/**
|
|
3
|
-
* Custom hook to access the
|
|
3
|
+
* Custom hook to access the MentraOS authentication context.
|
|
4
4
|
*
|
|
5
5
|
* @returns {MentraAuthContextType} The authentication context containing user state,
|
|
6
6
|
* loading status, error information, and authentication methods.
|
|
@@ -9,8 +9,8 @@ import { MentraAuthContextType } from './AuthProvider';
|
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```tsx
|
|
12
|
-
* const { userId, isAuthenticated, logout, isLoading } =
|
|
12
|
+
* const { userId, isAuthenticated, logout, isLoading } = UseMentraAuth();
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const UseMentraAuth: () => MentraAuthContextType;
|
|
16
16
|
//# sourceMappingURL=useMentraAuth.d.ts.map
|
package/dist/useMentraAuth.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
//
|
|
1
|
+
// react-sdk/src/UseMentraAuth.ts
|
|
2
2
|
import { useContext } from 'react';
|
|
3
3
|
import { MentraAuthContext } from './AuthProvider';
|
|
4
4
|
/**
|
|
5
|
-
* Custom hook to access the
|
|
5
|
+
* Custom hook to access the MentraOS authentication context.
|
|
6
6
|
*
|
|
7
7
|
* @returns {MentraAuthContextType} The authentication context containing user state,
|
|
8
8
|
* loading status, error information, and authentication methods.
|
|
@@ -11,13 +11,13 @@ import { MentraAuthContext } from './AuthProvider';
|
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```tsx
|
|
14
|
-
* const { userId, isAuthenticated, logout, isLoading } =
|
|
14
|
+
* const { userId, isAuthenticated, logout, isLoading } = UseMentraAuth();
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
export const
|
|
17
|
+
export const UseMentraAuth = () => {
|
|
18
18
|
const context = useContext(MentraAuthContext);
|
|
19
19
|
if (context === undefined) {
|
|
20
|
-
throw new Error('
|
|
20
|
+
throw new Error('UseMentraAuth must be used within an MentraAuthProvider');
|
|
21
21
|
}
|
|
22
22
|
return context;
|
|
23
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMentraAuth.js","sourceRoot":"","sources":["../src/useMentraAuth.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useMentraAuth.js","sourceRoot":"","sources":["../src/useMentraAuth.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAyB,MAAM,gBAAgB,CAAC;AAE1E;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,GAA0B,EAAE;IACvD,MAAM,OAAO,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;IAC9C,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
package/package.json
CHANGED