refactor: update kind 27235 auth event with recommendations from nip98

This commit is contained in:
enes 2024-10-08 13:46:54 +02:00
parent 8689c7f753
commit 862012e405

View File

@ -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
}