@a-tech.jo/auth-sdk 1.0.7 → 1.0.8

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 +5 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # `@a-tech/auth-sdk`
1
+ # `@a-tech.jo/auth-sdk`
2
2
 
3
3
  A full-stack, customizable authentication SDK providing seamless login, registration, and session management for A-Tech applications.
4
4
 
@@ -15,7 +15,7 @@ Website: https://a-tech.dev
15
15
  Import the pre-compiled CSS file in your root `layout.tsx` or `_app.tsx`:
16
16
 
17
17
  ```tsx
18
- import "@a-tech/auth-sdk/styles.css";
18
+ import "@a-tech.jo/auth-sdk/styles.css";
19
19
 
20
20
  ```
21
21
 
@@ -55,7 +55,7 @@ export default function ClientLayout({ children }: { children: React.ReactNode }
55
55
  Render the pre-built, responsive authentication card supporting mode toggling (Login, Register, Forgot Password).
56
56
 
57
57
  ```tsx
58
- import { SDKAuthContainer } from "@a-tech/auth-sdk";
58
+ import { SDKAuthContainer } from "@a-tech.jo/auth-sdk";
59
59
 
60
60
  export default function AuthPage() {
61
61
  const handleSuccess = (data: { user: any; token: string }) => {
@@ -78,7 +78,7 @@ export default function AuthPage() {
78
78
  Access the current user profile, JWT token, and session utilities anywhere within the `AuthProvider` scope:
79
79
 
80
80
  ```tsx
81
- import { useAuth } from "@a-tech/auth-sdk";
81
+ import { useAuth } from "@a-tech.jo/auth-sdk";
82
82
 
83
83
  export default function Dashboard() {
84
84
  const { user, token, logout, isExpired } = useAuth();
@@ -140,7 +140,7 @@ echo "//registry.npmjs.org/:_authToken=YOUR_NPM_TOKEN" > .npmrc && npm publish -
140
140
  Verify any JWT token and retrieve the active user profile using the SDK helper function:
141
141
 
142
142
  ```typescript
143
- import { verifyToken } from "@a-tech/auth-sdk";
143
+ import { verifyToken } from "@a-tech.jo/auth-sdk";
144
144
 
145
145
  async function validateSession(authToken: string) {
146
146
  // Verifies token and returns session status & user details
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a-tech.jo/auth-sdk",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "A-Tech Authentication SDK for React and Next.js",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",