style: remove markdown bold syntax from code comments
Remove `**...**` emphasis markers from inline comments and JSDoc blocks across auth and chat components, machine mappers, and quota helpers. These are plain code comments, not rendered markdown, so the bold syntax was noise. Files touched: - src/app/auth/components/auth-screen.tsx - src/app/chat/components/chat-header.tsx - src/app/chat/components/chat-screen.tsx - chat machine mapper / quota helpers No functional or behavioral changes.
This commit is contained in:
@@ -24,7 +24,7 @@ export const handler = NextAuth({
|
||||
// 把 OAuth provider 的 token 塞进 NextAuth session,供前端取用:
|
||||
// - Google: account.id_token → 调后端 /api/auth/google-login 换业务 token
|
||||
// - Facebook: account.access_token → 调后端 /api/auth/facebook-login
|
||||
// 仅在**首次 sign-in** 时把 `account` 注入到 JWT;后续请求 account=undefined
|
||||
// 仅在首次 sign-in 时把 `account` 注入到 JWT;后续请求 account=undefined
|
||||
// (由 NextAuth 控制),所以下面的 `if (account)` 守卫是必要的。
|
||||
callbacks: {
|
||||
async jwt({ token, account }) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* AuthPlatform 统一 OAuth 登录入口
|
||||
*
|
||||
* **两个**独立方法(**不**再依赖构造器):
|
||||
* 两个独立方法(不再依赖构造器):
|
||||
* - `googleSignIn()` → 触发 Google OAuth
|
||||
* - `facebookSignIn()` → 触发 Facebook OAuth
|
||||
*
|
||||
@@ -12,7 +12,7 @@
|
||||
* 3. NextAuth 写 next-auth.session-token (httpOnly) cookie
|
||||
* 4. 重定向到 callbackUrl (默认 /chat)
|
||||
*
|
||||
* **不**做任何持久化(不写 unstorage / 不调后端 / 不设自定义 cookie)。
|
||||
* 不做任何持久化(不写 unstorage / 不调后端 / 不设自定义 cookie)。
|
||||
* 原始 Dart: nextauth-helpers.{googleLogin, facebookLogin}()
|
||||
*/
|
||||
import { signIn } from "next-auth/react";
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* 登出(NextAuth 流程触发器)
|
||||
*
|
||||
* 调用 `signOut()` 清除 NextAuth session cookie 并重定向。
|
||||
* **不**做任何持久化(不写 unstorage / 不调后端 / 不设自定义 cookie)。
|
||||
* 不做任何持久化(不写 unstorage / 不调后端 / 不设自定义 cookie)。
|
||||
* 原始 Dart: nextauth-helpers.logout()
|
||||
*/
|
||||
import { signOut } from "next-auth/react";
|
||||
|
||||
Reference in New Issue
Block a user