feat: 添加JWKS token支持,更新用户和OAuth相关逻辑
This commit is contained in:
@@ -6,6 +6,7 @@ import { logger } from '../logger.ts';
|
||||
import { getLoginUser } from '@/modules/auth.ts';
|
||||
import { createStudioAppListHtml } from '../html/studio-app-list/index.ts';
|
||||
import { omit } from 'es-toolkit';
|
||||
import { baseProxyUrl, proxyDomain } from '../domain.ts';
|
||||
|
||||
type ProxyOptions = {
|
||||
createNotFoundPage: (msg?: string) => any;
|
||||
@@ -70,7 +71,7 @@ export const UserV1Proxy = async (req: IncomingMessage, res: ServerResponse, opt
|
||||
const path = searchParams.get('path');
|
||||
if (!path) {
|
||||
// 显示前端页面
|
||||
const html = fetch('https://kevisual.cn/root/router-studio/index.html').then(res => res.text());
|
||||
const html = fetch(`${baseProxyUrl}/root/router-studio/index.html`).then(res => res.text());
|
||||
res.writeHead(200, { 'Content-Type': 'text/html' });
|
||||
res.end(await html);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user