File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/app/api/auth/[...all] Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const configuration = {
3434 cookies : {
3535 keys : [ "some-secret-key-for-dev" ] ,
3636 } ,
37- findAccount : async ( ctx , id ) => {
37+ findAccount : async ( _ctx , id ) => {
3838 const account = accounts [ id ] ;
3939 if ( ! account ) return undefined ;
4040
@@ -52,7 +52,7 @@ const configuration = {
5252 } ,
5353 // Simple interaction - auto-login for dev
5454 interactions : {
55- url ( ctx , interaction ) {
55+ url ( _ctx , interaction ) {
5656 return `/interaction/${ interaction . uid } ` ;
5757 } ,
5858 } ,
@@ -74,7 +74,7 @@ const oidc = new Provider(ISSUER, configuration);
7474// Simple interaction endpoint for dev - auto-login as test-user
7575oidc . use ( async ( ctx , next ) => {
7676 if ( ctx . path . startsWith ( "/interaction/" ) ) {
77- const uid = ctx . path . split ( "/" ) [ 2 ] ;
77+ const _uid = ctx . path . split ( "/" ) [ 2 ] ;
7878 const interaction = await oidc . interactionDetails ( ctx . req , ctx . res ) ;
7979
8080 if ( interaction . prompt . name === "login" ) {
Original file line number Diff line number Diff line change 1- import { auth } from "@/lib/auth" ;
21import { toNextJsHandler } from "better-auth/next-js" ;
2+ import { auth } from "@/lib/auth" ;
33
44export const { GET , POST } = toNextJsHandler ( auth . handler ) ;
You can’t perform that action at this time.
0 commit comments