Skip to content

Commit

Permalink
chore: personal best practice ocd
Browse files Browse the repository at this point in the history
  • Loading branch information
NemesisLW committed Jul 9, 2024
1 parent d9a3733 commit 6cbd8a9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/(auth)/auth/callback/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export async function GET(request: Request) {
if (code) {
const cookieStore = cookies();
const supabase = createServerClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
process.env.SUPABASE_URL!,
process.env.SUPABASE_ANON_KEY!,
{
cookies: {
get(name: string) {
Expand Down
4 changes: 2 additions & 2 deletions lib/supabase/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createBrowserClient } from "@supabase/ssr";

export function createClient() {
return createBrowserClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!
process.env.SUPABASE_URL!,
process.env.SUPABASE_ANON_KEY!
);
}
4 changes: 2 additions & 2 deletions lib/supabase/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export async function updateSession(request: NextRequest) {
});

const supabase = createServerClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
process.env.SUPABASE_URL!,
process.env.SUPABASE_ANON_KEY!,
{
cookies: {
getAll() {
Expand Down
4 changes: 2 additions & 2 deletions lib/supabase/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export function createClient() {
const cookieStore = cookies();

return createServerClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
process.env.SUPABASE_URL!,
process.env.SUPABASE_ANON_KEY!,
{
cookies: {
getAll() {
Expand Down

0 comments on commit 6cbd8a9

Please sign in to comment.