From 862012e405cccd468f55182beb488421582af465 Mon Sep 17 00:00:00 2001 From: enes Date: Tue, 8 Oct 2024 13:46:54 +0200 Subject: [PATCH] refactor: update kind 27235 auth event with recommendations from nip98 --- src/controllers/AuthController.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/controllers/AuthController.ts b/src/controllers/AuthController.ts index b9d9779..bd8c021 100644 --- a/src/controllers/AuthController.ts +++ b/src/controllers/AuthController.ts @@ -57,12 +57,15 @@ export class AuthController { // Nostr uses unix timestamps const timestamp = unixNow() - const { hostname } = window.location + const { href } = window.location const authEvent: EventTemplate = { kind: 27235, - tags: [], - content: `${hostname}-${timestamp}`, + tags: [ + ['u', href], + ['method', 'GET'] + ], + content: '', created_at: timestamp }