Skip to content

Commit

Permalink
chore: upgrade to deno_kv_oauth@v0.8.0 (denoland#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua authored Sep 27, 2023
1 parent caa4ad8 commit 1b8cdbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
4 changes: 2 additions & 2 deletions plugins/kv_oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1b8cdbd

Please sign in to comment.