Skip to content

Commit

Permalink
review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
a01sa01to committed Dec 15, 2024
1 parent 1991add commit 094d25a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/api/login/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ app.get(
const { code, state } = c.req.valid('query')

const { getSession, commitSession } = cookieSessionStorage(c.env)
const session = await getSession(c.req.header('Cookie'))
const session = await getSession(c.req.raw.headers.get('Cookie'))

if (state !== session.get('state')) {
c.header('Set-Cookie', await commitSession(session))
Expand Down Expand Up @@ -105,7 +105,7 @@ app.get(
},
)
isMember = (checkIsOrgMemberRes.status as number) === 204
} catch (_) {
} catch {
isMember = false
}

Expand Down

0 comments on commit 094d25a

Please sign in to comment.