From ed12fb0fc9a53faa44f69e803f87014f98112cf6 Mon Sep 17 00:00:00 2001
From: Tim <135014430+nagisa77@users.noreply.github.com>
Date: Sat, 5 Jul 2025 14:51:29 +0800
Subject: [PATCH] feat: add google auth integration
---
README.md | 1 +
open-isle-cli/public/index.html | 1 +
open-isle-cli/src/main.js | 1 +
open-isle-cli/src/utils/google.js | 32 ++++++++++++++++++++++
open-isle-cli/src/views/LoginPageView.vue | 8 +++++-
open-isle-cli/src/views/SignupPageView.vue | 8 +++++-
6 files changed, 49 insertions(+), 2 deletions(-)
create mode 100644 open-isle-cli/src/utils/google.js
diff --git a/README.md b/README.md
index 8d6bdecdd..a393e1a4c 100644
--- a/README.md
+++ b/README.md
@@ -45,6 +45,7 @@ OpenIsle 基于 Spring Boot 构建,提供社区后台常见的注册、登录
- `RESEND_API_KEY`:Resend 邮件服务 API Key
- `COS_BASE_URL`:腾讯云 COS 访问域名
- `GOOGLE_CLIENT_ID`:Google OAuth 客户端 ID
+ - `VUE_APP_GOOGLE_CLIENT_ID`:前端 Google OAuth 客户端 ID
- `JWT_SECRET`:JWT 签名密钥
- `JWT_EXPIRATION`:JWT 过期时间(毫秒)
- `PASSWORD_STRENGTH`:密码强度(LOW、MEDIUM、HIGH)
diff --git a/open-isle-cli/public/index.html b/open-isle-cli/public/index.html
index ed3c2de70..0b96aea5b 100644
--- a/open-isle-cli/public/index.html
+++ b/open-isle-cli/public/index.html
@@ -9,6 +9,7 @@
<%= htmlWebpackPlugin.options.title %>
+