Checks the rows invite-service.ts reads from invites to vet an invite
before sign-up.
f
isInviteRow(obj: unknown): obj is InviteRow
Checks whether obj, a row validateInvite selected, is an
InviteRow.
I
InviteRow
Stored by createInvite, and read back by validateInvite when the invite
link is opened or used to sign up.
-
created_at: string
Starts the 7-day window in which the invite works.
-
inviter_id: string
Becomes the new user's
invited_by. -
token: string
The random token the invite link carries, which is the primary key.
-
used_at: string | null
Set when an account is created with the invite.
Usage
import * as mod from "api/model/invite.ts";