src/lib/auth-client.ts
此代码来自构建时的仓库快照。修改源码后重新构建即可更新。
'use client';
import { createAuthClient } from 'better-auth/react';
// 使用同源 /api/auth,浏览器自动携带 Cookie,无需把令牌放入 localStorage。
export const authClient = createAuthClient();
此代码来自构建时的仓库快照。修改源码后重新构建即可更新。
'use client';
import { createAuthClient } from 'better-auth/react';
// 使用同源 /api/auth,浏览器自动携带 Cookie,无需把令牌放入 localStorage。
export const authClient = createAuthClient();