fix: 应用id问题
This commit is contained in:
parent
0090ffd3bb
commit
64cab48ae3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user