Skip to content

Commit d9e1106

Browse files
committed
format
1 parent 16b4f56 commit d9e1106

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dev-auth/oidc-provider.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
7575
oidc.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") {

src/app/api/auth/[...all]/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { auth } from "@/lib/auth";
21
import { toNextJsHandler } from "better-auth/next-js";
2+
import { auth } from "@/lib/auth";
33

44
export const { GET, POST } = toNextJsHandler(auth.handler);

0 commit comments

Comments
 (0)