mirror of
https://github.com/dylanbenzi/yellowbird.git
synced 2026-11-27 09:17:00 +00:00
db sync userid with clerk
This commit is contained in:
+8
-1
@@ -1,7 +1,14 @@
|
||||
import { syncUsers } from "@/db/db";
|
||||
import { SignInButton, SignedOut } from "@clerk/nextjs";
|
||||
import { auth, currentUser } from "@clerk/nextjs/server";
|
||||
import React from "react";
|
||||
|
||||
const page = () => {
|
||||
const page = async () => {
|
||||
const user = await currentUser();
|
||||
if (user) {
|
||||
syncUsers(user);
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<SignedOut>
|
||||
|
||||
Reference in New Issue
Block a user