@usequark/quark-create-app 1.27.0 → 1.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usequark/quark-create-app",
3
- "version": "1.27.0",
3
+ "version": "1.27.1",
4
4
  "description": "CLI to scaffold new Quark projects with Next.js, Prisma, BullMQ, and Railway deployment",
5
5
  "keywords": [
6
6
  "quark",
@@ -237,6 +237,13 @@ async function validateSessionToken(token) {
237
237
 
238
238
  export function getAuthOptions() {
239
239
  return createAuthConfig({
240
+ // The adapter is load-bearing even though sessions are JWT (see
241
+ // `session.strategy` below): it persists the `Account` rows that link
242
+ // OAuth identities to users — the adapter reads and writes them, and
243
+ // `account.findByUserIdAndProvider` is covered in `packages/db`. Do
244
+ // not remove it. The `Session` model queries (`session.*` in
245
+ // `packages/db/src/queries.js`) are the opposite: app-owned helpers the
246
+ // JWT strategy never populates.
240
247
  adapter: PrismaAdapter(prisma),
241
248
  providers: providers,
242
249
  logger: {
@@ -139,6 +139,12 @@ export const account = {
139
139
  };
140
140
 
141
141
  // Session queries (NextAuth)
142
+ //
143
+ // App-owned helpers, not Auth.js storage: the scaffold pins
144
+ // `session.strategy: "jwt"` (see `apps/web/src/lib/auth.js`), under which
145
+ // Auth.js neither reads nor writes session rows — revocation is enforced by
146
+ // `validateSessionToken` re-reading the user row instead. Kept for apps that
147
+ // need server-side session bookkeeping of their own.
142
148
  export const session = {
143
149
  findByToken: (sessionToken) => {
144
150
  return prisma.session.findUnique({