Skip to content

Commit

Permalink
fix: remove console log
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgriffing committed Oct 26, 2024
1 parent 3207b52 commit ffc93e9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions playgrounds/app/src/routes/api/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import { encodeAccessToken } from '~/lib/jwt'
export async function POST(event: APIEvent) {
const { code } = await event.request.json()

console.log('client id', process.env.VITE_GITHUB_CLIENT_ID)

const githubResponse = await fetch('https://github.com/login/oauth/access_token', {
method: 'POST',
headers: {
Expand All @@ -37,8 +35,6 @@ export async function POST(event: APIEvent) {

const githubUser = await githubUserResponse.json()

console.log({ githubUser })

let user = await db.query.users.findFirst({
where: eq(usersTable.githubId, githubUser.id),
})
Expand Down

0 comments on commit ffc93e9

Please sign in to comment.