From 54d0498a2e3142a01e2d778f79d3510acf17d547 Mon Sep 17 00:00:00 2001 From: Kunal Gupta <39487888+iamKunalGupta@users.noreply.github.com> Date: Mon, 8 Jan 2024 18:01:49 +0530 Subject: [PATCH] chore(ui): reformat via prettier --- ui/app/auth/options.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ui/app/auth/options.ts b/ui/app/auth/options.ts index 8aaea2349d..8d68e1b0ea 100644 --- a/ui/app/auth/options.ts +++ b/ui/app/auth/options.ts @@ -1,7 +1,7 @@ -import { Provider } from 'next-auth/providers/index'; -import CredentialsProvider from 'next-auth/providers/credentials'; import { Configuration } from '@/app/config/config'; import { AuthOptions } from 'next-auth'; +import CredentialsProvider from 'next-auth/providers/credentials'; +import { Provider } from 'next-auth/providers/index'; function getEnabledProviders(): Provider[] { return [ @@ -11,7 +11,10 @@ function getEnabledProviders(): Provider[] { password: { label: 'Password', type: 'password' }, }, async authorize(credentials, req) { - if (credentials == null || credentials.password != Configuration.authentication.PEERDB_PASSWORD) { + if ( + credentials == null || + credentials.password != Configuration.authentication.PEERDB_PASSWORD + ) { return null; } return { id: '1', name: 'Admin' }; @@ -19,7 +22,6 @@ function getEnabledProviders(): Provider[] { }), ]; } - export const authOptions: AuthOptions = { providers: getEnabledProviders(), debug: false,