feat(frontend): Add ogranization invitation

This commit is contained in:
2025-04-18 18:58:06 +02:00
parent 068dc1305f
commit 9c1cefd4ed
8 changed files with 325 additions and 26 deletions

View File

@@ -4,3 +4,17 @@ import type { authClient } from './auth-client'
export type Session = typeof auth.$Infer.Session
export type ActiveOrganization = typeof authClient.$Infer.ActiveOrganization
export type Invitation = typeof authClient.$Infer.Invitation
// Types can be found here: https://github.com/better-auth/better-auth/blob/3f574ec70bb15c155a78673d42c5e25f7376ced3/packages/better-auth/src/plugins/organization/routes/crud-invites.ts#L531
export type CustomInvitation = {
organizationName: string
organizationSlug: string
inviterEmail: string
id: string
status: 'pending' | 'accepted' | 'rejected' | 'canceled'
email: string
expiresAt: Date
organizationId: string
role: string
inviterId: string
} | null