File tree Expand file tree Collapse file tree 6 files changed +16
-1
lines changed
Expand file tree Collapse file tree 6 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " create-t3-app " : patch
3+ ---
4+
5+ fix #1903 #2157 #2163
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ export const runCli = async (): Promise<CliResults> => {
144144 )
145145 /** @experimental - Used for CI E2E tests. Used in conjunction with `--CI` to skip prompting. */
146146 . option (
147- "-i, --import-alias" ,
147+ "-i, --import-alias [alias] " ,
148148 "Explicitly tell the CLI to use a custom import alias" ,
149149 defaultOptions . flags . importAlias
150150 )
Original file line number Diff line number Diff line change 1212/prisma/db.sqlite
1313/prisma/db.sqlite-journal
1414db.sqlite
15+ /generated/
1516
1617# next.js
1718/.next/
Original file line number Diff line number Diff line change 11import { betterAuth } from "better-auth" ;
2+ import { nextCookies } from "better-auth/next-js" ;
23
34export const auth = betterAuth ( {
45 emailAndPassword : {
56 enabled : true ,
67 } ,
8+ // Make sure nextCookies() is the last plugin in the array
9+ plugins : [ nextCookies ( ) ] ,
710} ) ;
811
912export type Session = typeof auth . $Infer . Session ;
Original file line number Diff line number Diff line change 11import { betterAuth } from "better-auth" ;
22import { drizzleAdapter } from "better-auth/adapters/drizzle" ;
3+ import { nextCookies } from "better-auth/next-js" ;
34
45import { env } from "~/env" ;
56import { db } from "~/server/db" ;
@@ -18,6 +19,8 @@ export const auth = betterAuth({
1819 redirectURI : "http://localhost:3000/api/auth/callback/github" ,
1920 } ,
2021 } ,
22+ // Make sure nextCookies() is the last plugin in the array
23+ plugins : [ nextCookies ( ) ] ,
2124} ) ;
2225
2326export type Session = typeof auth . $Infer . Session ;
Original file line number Diff line number Diff line change 11import { betterAuth } from "better-auth" ;
22import { prismaAdapter } from "better-auth/adapters/prisma" ;
3+ import { nextCookies } from "better-auth/next-js" ;
34
45import { env } from "~/env" ;
56import { db } from "~/server/db" ;
@@ -18,6 +19,8 @@ export const auth = betterAuth({
1819 redirectURI : "http://localhost:3000/api/auth/callback/github" ,
1920 } ,
2021 } ,
22+ // Make sure nextCookies() is the last plugin in the array
23+ plugins : [ nextCookies ( ) ] ,
2124} ) ;
2225
2326export type Session = typeof auth . $Infer . Session ;
You can’t perform that action at this time.
0 commit comments