diff --git a/deno.json b/deno.json index 9a6e4da22396..1d90204ab00a 100644 --- a/deno.json +++ b/deno.json @@ -37,7 +37,7 @@ "std/": "https://deno.land/std@0.202.0/", "stripe": "npm:/stripe@13.5.0", "feed": "npm:/feed@4.2.2", - "kv_oauth": "https://deno.land/x/deno_kv_oauth@v0.7.0/mod.ts", + "kv_oauth": "https://deno.land/x/deno_kv_oauth@v0.8.0/mod.ts", "tabler_icons_tsx/": "https://deno.land/x/tabler_icons_tsx@0.0.4/tsx/", "@twind/core": "https://esm.sh/@twind/core@1.1.3", "fresh_charts/": "https://deno.land/x/fresh_charts@0.3.1/" diff --git a/plugins/kv_oauth.ts b/plugins/kv_oauth.ts index 0311d6ab302d..a3b7cb9eb2cd 100644 --- a/plugins/kv_oauth.ts +++ b/plugins/kv_oauth.ts @@ -67,12 +67,12 @@ export default { { path: "/callback", handler: async (req) => { - const { response, accessToken, sessionId } = await handleCallback( + const { response, tokens, sessionId } = await handleCallback( req, oauthConfig, ); - const githubUser = await getGitHubUser(accessToken); + const githubUser = await getGitHubUser(tokens.accessToken); const user = await getUser(githubUser.login); if (user === null) {