add Nostr-login package #217

Merged
enes merged 20 commits from nostr-login-9-30 into staging 2024-10-09 08:54:33 +00:00
Showing only changes of commit 862012e405 - Show all commits

View File

@ -57,12 +57,15 @@ export class AuthController {
// Nostr uses unix timestamps // Nostr uses unix timestamps
const timestamp = unixNow() const timestamp = unixNow()
const { hostname } = window.location const { href } = window.location
const authEvent: EventTemplate = { const authEvent: EventTemplate = {
kind: 27235, kind: 27235,
tags: [], tags: [
content: `${hostname}-${timestamp}`, ['u', href],
['method', 'GET']
],
content: '',
created_at: timestamp created_at: timestamp
} }