@mentra/react 2.0.1 → 2.0.2
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/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/useMentraAuth.d.ts +1 -1
- package/dist/useMentraAuth.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/useMentraAuth.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ import { MentraAuthContextType } from './AuthProvider';
|
|
|
12
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
|
@@ -14,7 +14,7 @@ import { MentraAuthContext } from './AuthProvider';
|
|
|
14
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
20
|
throw new Error('UseMentraAuth must be used within an MentraAuthProvider');
|
package/package.json
CHANGED