@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.
Files changed (2) hide show
  1. package/README.md +6 -9
  2. 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
- import { AuthProvider } from "@a-tech/auth-sdk";
24
+ "use client"
25
25
 
26
- export default function RootLayout({ children }: { children: React.ReactNode }) {
26
+ import { AuthProvider } from "@a-tech.jo/auth-sdk";
27
+
28
+ export default function ClientLayout({ children }: { children: React.ReactNode }) {
27
29
  return (
28
- <html lang="en">
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a-tech.jo/auth-sdk",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "A-Tech Authentication SDK for React and Next.js",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",