mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-11-04 08:10:28 +09:00
하나의 공개 키로 여러 계정에 로그인할 수 있도록 구현
This commit is contained in:
1 parent
c16abca832
commit
af51f04b94
7 files changed
+131
-71
No files matched your search
@@ -17,6 +17,10 @@ export const getClientByPubKey = async (pubKey: string) => {
|
||||
return clients[0] ?? null;
|
||||
};
|
||||
|
||||
export const createUserClient = async (userId: number, clientId: number) => {
|
||||
await db.insert(userClient).values({ userId, clientId }).execute();
|
||||
};
|
||||
|
||||
export const getUserClient = async (userId: number, clientId: number) => {
|
||||
const userClients = await db
|
||||
.select()
|
||||
|
||||
Reference in new issue
Block a user