Skip to content

Commit 9116fef

Browse files
committed
refresh + access token
1 parent 38781bd commit 9116fef

File tree

4 files changed

+11
-497
lines changed

4 files changed

+11
-497
lines changed

apps/postgres-new/app/api/oauth/callback/route.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { createClient } from '~/utils/supabase/server'
22
import { NextRequest, NextResponse } from 'next/server'
3-
import { env } from 'process'
4-
5-
const supabase = createClient()
63

74
export async function GET(req: NextRequest) {
5+
const supabase = createClient()
6+
87
const { data, error } = await supabase.auth.getUser()
98
console.log({ data, error })
109
// We have middleware, so this should never happen (used for type narrowing)

apps/postgres-new/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@radix-ui/react-slot": "^1.1.0",
2525
"@radix-ui/react-tabs": "^1.1.0",
2626
"@radix-ui/react-tooltip": "^1.1.2",
27-
"@std/tar": "npm:@jsr/std__tar@^0.1.1",
27+
"@std/tar": "npm:@jsr/std__tar@^0.1.2",
2828
"@supabase/postgres-meta": "^0.81.2",
2929
"@supabase/ssr": "^0.4.0",
3030
"@supabase/supabase-js": "^2.45.0",

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)