feat: add local auth billing and usage management

This commit is contained in:
inman committed 2026-08-12 12:13:06 +08:00
1 parent f642b5e71f
commit 196fdde83f
119 files changed
+15695 -2650

No files matched your search

+2 -1
View File
@@ -92,7 +92,8 @@ export async function completeAuthorizationCallback(request: Request): Promise<N
const claims = await verifyAuthJwt(token.access_token, config);
const session = createSessionFromClaims(claims, config, token.expires_in, {
accessToken: token.access_token,
tokenType: token.token_type
tokenType: token.token_type,
authMode: "user"
});
const response = NextResponse.redirect(new URL(stateCookie.next, request.url));
setSessionCookieValue(