From c1f7ce3436eae47c5a7880cf739b76d048b5a0c2 Mon Sep 17 00:00:00 2001 From: Luiz Bett <59735735+heyBett@users.noreply.github.com> Date: Fri, 8 Jul 2022 14:22:28 -0300 Subject: [PATCH] fix(ts): make `colorScheme` optional (#4868) Documentation says if it is not passed it will be "auto", but it is mandatory on this type. --- packages/next-auth/src/core/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next-auth/src/core/types.ts b/packages/next-auth/src/core/types.ts index a66800a73b..f75fcf8b6b 100644 --- a/packages/next-auth/src/core/types.ts +++ b/packages/next-auth/src/core/types.ts @@ -214,7 +214,7 @@ export interface NextAuthOptions { * [Pages](https://next-auth.js.org/configuration/pages) */ export interface Theme { - colorScheme: "auto" | "dark" | "light" + colorScheme?: "auto" | "dark" | "light" logo?: string brandColor?: string buttonText?: string