From 3c361cb59b8602ef4648e48bab24665257d7ae4d Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 5 Jun 2024 11:37:16 -0500 Subject: [PATCH] Improve OAuth form design slightly --- src/controllers/api/oauth.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/controllers/api/oauth.ts b/src/controllers/api/oauth.ts index 242646b..5837a5e 100644 --- a/src/controllers/api/oauth.ts +++ b/src/controllers/api/oauth.ts @@ -5,6 +5,7 @@ import { generateSecretKey, getPublicKey } from 'nostr-tools'; import { z } from 'zod'; import { AppController } from '@/app.ts'; +import { Conf } from '@/config.ts'; import { DittoDB } from '@/db/DittoDB.ts'; import { nostrNow } from '@/utils.ts'; import { parseBody } from '@/utils/api.ts'; @@ -128,13 +129,42 @@ const oauthController: AppController = (c) => { Log in with Ditto + +

Nostr Connect

+

Sign in with a Nostr bunker app. Please configure the app to use this relay: ${Conf.relay}

`);