- Add Google OAuth SSO using @aieng-auth/react
+ Add Google OAuth SSO using @vector-institute/aieng-auth-react
pnpm add @aieng-auth/react
+ Install: pnpm add @vector-institute/aieng-auth-react
<AuthProvider>
diff --git a/package.json b/package.json
index 5d711dd..d7c9ede 100644
--- a/package.json
+++ b/package.json
@@ -13,9 +13,9 @@
],
"repository": {
"type": "git",
- "url": "https://github.com/your-org/aieng-template-auth.git"
+ "url": "https://github.com/VectorInstitute/aieng-auth.git"
},
- "license": "MIT",
+ "license": "Apache-2.0",
"engines": {
"node": ">=18.0.0",
"pnpm": ">=8.0.0"
diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md
new file mode 100644
index 0000000..a851e0f
--- /dev/null
+++ b/packages/core/CHANGELOG.md
@@ -0,0 +1,12 @@
+# @vector-institute/aieng-auth-core
+
+## 0.1.1
+
+### Patch Changes
+
+- Initial release of @vector-institute/aieng-auth packages
+ - Google OAuth 2.0 client with PKCE security
+ - React hooks and components for authentication
+ - Domain-based access restrictions
+ - Automatic token refresh
+ - Framework-agnostic core library
diff --git a/packages/core/package.json b/packages/core/package.json
index bc4da4c..e43ddba 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -1,6 +1,6 @@
{
- "name": "@aieng-auth/core",
- "version": "0.1.0",
+ "name": "@vector-institute/aieng-auth-core",
+ "version": "0.1.1",
"description": "Framework-agnostic Google OAuth authentication core library",
"keywords": [
"google",
@@ -9,8 +9,8 @@
"pkce",
"security"
],
- "author": "Your Organization",
- "license": "MIT",
+ "author": "Vector Institute",
+ "license": "Apache-2.0",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md
new file mode 100644
index 0000000..252bf5f
--- /dev/null
+++ b/packages/react/CHANGELOG.md
@@ -0,0 +1,15 @@
+# @vector-institute/aieng-auth-react
+
+## 0.1.1
+
+### Patch Changes
+
+- Initial release of @vector-institute/aieng-auth packages
+ - Google OAuth 2.0 client with PKCE security
+ - React hooks and components for authentication
+ - Domain-based access restrictions
+ - Automatic token refresh
+ - Framework-agnostic core library
+
+- Updated dependencies
+ - @vector-institute/aieng-auth-core@0.1.1
diff --git a/packages/react/package.json b/packages/react/package.json
index 7b74682..48f714f 100644
--- a/packages/react/package.json
+++ b/packages/react/package.json
@@ -1,6 +1,6 @@
{
- "name": "@aieng-auth/react",
- "version": "0.1.0",
+ "name": "@vector-institute/aieng-auth-react",
+ "version": "0.1.1",
"description": "React hooks and components for Google OAuth authentication",
"keywords": [
"google",
@@ -9,8 +9,8 @@
"hooks",
"authentication"
],
- "author": "Your Organization",
- "license": "MIT",
+ "author": "Vector Institute",
+ "license": "Apache-2.0",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
@@ -38,7 +38,7 @@
"clean": "rm -rf dist .turbo node_modules"
},
"dependencies": {
- "@aieng-auth/core": "workspace:*"
+ "@vector-institute/aieng-auth-core": "workspace:*"
},
"devDependencies": {
"@aieng-auth/eslint-config": "workspace:*",
diff --git a/packages/react/src/auth-provider.tsx b/packages/react/src/auth-provider.tsx
index 06d0677..2d572ee 100644
--- a/packages/react/src/auth-provider.tsx
+++ b/packages/react/src/auth-provider.tsx
@@ -6,7 +6,7 @@ import {
getTimeUntilExpiration,
type AuthTokens,
type User,
-} from '@aieng-auth/core';
+} from '@vector-institute/aieng-auth-core';
import { AuthContext } from './auth-context';
import type { AuthProviderProps, AuthState } from './types';
diff --git a/packages/react/src/index.ts b/packages/react/src/index.ts
index 64be883..b756068 100644
--- a/packages/react/src/index.ts
+++ b/packages/react/src/index.ts
@@ -11,4 +11,9 @@ export type { AuthState, AuthContextValue, AuthProviderProps } from './types';
export type { ProtectedRouteProps } from './protected-route';
// Re-export core types for convenience
-export type { AuthConfig, AuthTokens, User, PKCEChallenge } from '@aieng-auth/core';
+export type {
+ AuthConfig,
+ AuthTokens,
+ User,
+ PKCEChallenge,
+} from '@vector-institute/aieng-auth-core';
diff --git a/packages/react/src/types.ts b/packages/react/src/types.ts
index 35022ca..f20e855 100644
--- a/packages/react/src/types.ts
+++ b/packages/react/src/types.ts
@@ -1,4 +1,4 @@
-import type { AuthConfig, AuthTokens, User } from '@aieng-auth/core';
+import type { AuthConfig, AuthTokens, User } from '@vector-institute/aieng-auth-core';
/**
* Authentication state
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 2a6eb31..c92eca9 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -23,7 +23,7 @@ importers:
apps/demo-nextjs:
dependencies:
- '@aieng-auth/core':
+ '@vector-institute/aieng-auth-core':
specifier: workspace:*
version: link:../../packages/core
iron-session:
@@ -60,10 +60,10 @@ importers:
apps/demo-react:
dependencies:
- '@aieng-auth/core':
+ '@vector-institute/aieng-auth-core':
specifier: workspace:*
version: link:../../packages/core
- '@aieng-auth/react':
+ '@vector-institute/aieng-auth-react':
specifier: workspace:*
version: link:../../packages/react
react:
@@ -151,7 +151,7 @@ importers:
packages/react:
dependencies:
- '@aieng-auth/core':
+ '@vector-institute/aieng-auth-core':
specifier: workspace:*
version: link:../core
devDependencies: