mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-23 19:27:25 +02:00
✨ Add instance settings and option to disable user registration (#1745)
This commit is contained in:
parent
9e1f3c616e
commit
3c2e008579
31 changed files with 552 additions and 153 deletions
3
apps/web/declarations/next-auth.d.ts
vendored
3
apps/web/declarations/next-auth.d.ts
vendored
|
@ -1,4 +1,4 @@
|
|||
import type { TimeFormat } from "@rallly/database";
|
||||
import type { TimeFormat, UserRole } from "@rallly/database";
|
||||
import type { DefaultSession, DefaultUser } from "next-auth";
|
||||
import type { DefaultJWT } from "next-auth/jwt";
|
||||
import type { NextRequest } from "next/server";
|
||||
|
@ -23,6 +23,7 @@ declare module "next-auth" {
|
|||
timeFormat?: TimeFormat | null;
|
||||
weekStart?: number | null;
|
||||
banned?: boolean | null;
|
||||
role?: UserRole | null;
|
||||
}
|
||||
|
||||
interface NextAuthRequest extends NextRequest {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue