Skip to content

Documentation


Documentation / @kizami/db / findInvitationByTokenHash

Function: findInvitationByTokenHash()

findInvitationByTokenHash(db, tokenHash): Promise<{ acceptedAt: number | null; createdAt: number; createdBy: string; expiresAt: number; id: string; revokedAt: number | null; tenantId: string; tokenHash: string; userId: string; } | null>

Defined in: packages/db/src/queries/invitations.ts:100

トークンのハッシュから1件探す(受諾用)。有効性の判定は呼び出し側が行う。

Parameters

db

Database

tokenHash

string

Returns

Promise<{ acceptedAt: number | null; createdAt: number; createdBy: string; expiresAt: number; id: string; revokedAt: number | null; tenantId: string; tokenHash: string; userId: string; } | null>