Skip to content

Commit 9aa96c9

Browse files
committed
Apple oauth form handler needs edge runtime setting
1 parent 325b5e5 commit 9aa96c9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

apps/next/pages/oauth/[provider].tsx

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { OAuthSignInScreen, OAuthSignInScreenProps } from 'app/features/oauth/sc
22
import Head from 'next/head'
33

44
export { getServerSideProps } from 'app/features/oauth/screen'
5+
export const runtime = 'experimental-edge'
56

67
export default function Page(props: OAuthSignInScreenProps) {
78
return (

packages/api/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
"@libsql/client": "^0.3.5",
2323
"@lucia-auth/adapter-drizzle": "1.0.0-beta.2",
2424
"@trpc/server": "^10.43.2",
25-
"arctic": "0.10.0",
25+
"arctic": "0.10.2",
2626
"drizzle-orm": "^0.29.0",
2727
"drizzle-valibot": "beta",
2828
"hono": "^3.9.2",
2929
"lucia": "3.0.0-beta.12",
3030
"miniflare": "3.20231025.1",
31-
"oslo": "0.24.0",
31+
"oslo": "0.26.1",
3232
"superjson": "1.13.3",
3333
"ts-pattern": "^5.0.5",
3434
"valibot": "^0.20.1"

packages/api/src/context.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import type { User } from './db/schema'
55
import { Bindings } from './worker'
66
import type { inferAsyncReturnType } from '@trpc/server'
77
import type { Context as HonoContext, HonoRequest } from 'hono'
8-
import { verifyRequestOrigin, type Lucia } from 'lucia'
8+
import type { Lucia } from 'lucia'
9+
import { verifyRequestOrigin } from 'oslo/request'
910
import { verifyToken } from './utils/crypto'
1011
import { createAuth, getAllowedOriginHost } from './auth'
1112
import { getCookie } from 'hono/cookie'

0 commit comments

Comments
 (0)