@a-tech.jo/auth-sdk 1.0.4 → 1.0.6
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 +6 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,17 +21,15 @@ import "@a-tech/auth-sdk/styles.css";
|
|
|
21
21
|
Encapsulate your component tree with the `AuthProvider` to manage global authentication state and token expiration.
|
|
22
22
|
|
|
23
23
|
```tsx
|
|
24
|
-
|
|
24
|
+
"use client"
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
import { AuthProvider } from "@a-tech.jo/auth-sdk";
|
|
27
|
+
|
|
28
|
+
export default function ClientLayout({ children }: { children: React.ReactNode }) {
|
|
27
29
|
return (
|
|
28
|
-
|
|
29
|
-
<body>
|
|
30
|
-
<AuthProvider "local" config="{{" environment: }}>
|
|
30
|
+
<AuthProvider config={{ environment: "stage"}}>
|
|
31
31
|
{children}
|
|
32
32
|
</AuthProvider>
|
|
33
|
-
</body>
|
|
34
|
-
</html>
|
|
35
33
|
);
|
|
36
34
|
}
|
|
37
35
|
|
|
@@ -128,8 +126,7 @@ rm -rf dist *.tgz && npm run build
|
|
|
128
126
|
# Publish to npm using your access token
|
|
129
127
|
echo "//registry.npmjs.org/:_authToken=YOUR_NPM_TOKEN" > .npmrc && npm publish --access public ; rm -f .npmrc
|
|
130
128
|
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
```
|
|
133
130
|
|
|
134
131
|
---
|
|
135
132
|
|