fix: 应用id问题

This commit is contained in:
14790897 2024-03-13 20:55:50 +08:00
parent 0090ffd3bb
commit 64cab48ae3

View File

@ -4,9 +4,8 @@ import React from "react";
const LinuxdoSignin = () => {
const handleLogin = () => {
// 构建授权URL
const clientId = "UrgIEI0n03tveTmaOV0IU8qRY4DttGY4";
const responseType = "code";
const authUrl = `https://connect.linux.do/oauth2/authorize?response_type=${responseType}&client_id=${clientId}&state=ttt1`;
const authUrl = `https://connect.linux.do/oauth2/authorize?response_type=${responseType}&client_id=${process.env.CLIENT_ID}&state=ttt1`;
// 重定向到授权页面
window.location.href = authUrl;