Skip to content

Commit c4322d7

Browse files
committed
oops!
1 parent 0275091 commit c4322d7

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- [2025-08-27] [oops!](https://github.com/RubricLab/auth/commit/1b8110f86fcb0a8b82190ecd45669acb26f2f90e)
12
- [2025-08-27] [widen auth url params for next 15.5 and validate with zod](https://github.com/RubricLab/auth/commit/dea78c332be1601c9fdf7816b897f955a3fea17a)
23
- [2025-08-26] [drizzle-orm peer dep](https://github.com/RubricLab/auth/commit/fb84692d4d57816c9dccfae3d7fce113bd1a39e1)
34
- [2025-07-23] [Scaffold README and LICENSE](https://github.com/RubricLab/auth/commit/7ad9ac8f05dc4aa3474a67be19ce3f0e7ebd5e01)

lib/utils.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,10 @@ export function createAuth<
504504
}>
505505
}
506506
) {
507-
const [method, provider] = z
508-
.tuple([z.enum(['authentication', 'authorization']), z.string()])
507+
const {
508+
auth: [method, provider]
509+
} = z
510+
.object({ auth: z.tuple([z.enum(['authentication', 'authorization']), z.string()]) })
509511
.parse(await params)
510512

511513
const { searchParams } = new URL(request.url)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
"simple-git-hooks": {
3030
"post-commit": "bun x @rubriclab/package post-commit"
3131
},
32-
"version": "0.0.51"
32+
"version": "0.0.52"
3333
}

0 commit comments

Comments
 (0)