@zenith-open/zenithcms-plugin-auth-google 1.0.0-beta.8 → 1.0.0-beta.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenith-open/zenithcms-plugin-auth-google",
3
- "version": "1.0.0-beta.8",
3
+ "version": "1.0.0-beta.9",
4
4
  "description": "Google OAuth Strategy",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,8 +11,8 @@
11
11
  "typescript": "^5.4.5"
12
12
  },
13
13
  "peerDependencies": {
14
- "@zenith-open/zenithcms-core": "1.0.0-beta.8",
15
- "@zenith-open/zenithcms-types": "1.0.0-beta.8"
14
+ "@zenith-open/zenithcms-core": "1.0.0-beta.9",
15
+ "@zenith-open/zenithcms-types": "1.0.0-beta.9"
16
16
  },
17
17
  "publishConfig": {
18
18
  "access": "public"
@@ -1,2 +0,0 @@
1
- import { ZenithPlugin } from '@zenith-open/zenithcms-types';
2
- export declare const googleAuthPlugin: () => ZenithPlugin;
package/dist/src/index.js DELETED
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.googleAuthPlugin = void 0;
4
- const googleAuthPlugin = () => {
5
- return {
6
- id: 'auth-google',
7
- name: 'Google OAuth',
8
- description: 'Google Authentication Integration',
9
- onReady: async (ctx) => {
10
- ctx.logger.info('[Google Auth Plugin] Registering Google passport strategy...');
11
- const core = require('@zenith-open/zenithcms-core');
12
- if (core && core.passport && core.AuthStrategyRegistry) {
13
- const { Strategy } = require('passport-google-oauth20');
14
- core.AuthStrategyRegistry.registerStrategy({
15
- name: 'google',
16
- displayName: 'Google Login',
17
- icon: 'brand-google',
18
- authenticate: async () => ({ success: false, error: 'Google OAuth not fully configured in scaffold' })
19
- });
20
- }
21
- }
22
- };
23
- };
24
- exports.googleAuthPlugin = googleAuthPlugin;