feat: notifications

This commit is contained in:
2024-12-04 14:57:35 +00:00
parent 119493e850
commit 7ffff1e698
8 changed files with 134 additions and 16 deletions

View File

@ -1,6 +1,6 @@
use base64::prelude::BASE64_STANDARD;
use base64::Engine;
use log::info;
use log::{debug, info};
use nostr::{Event, JsonUtil, Kind, Timestamp};
use rocket::http::uri::{Absolute, Uri};
use rocket::http::Status;
@ -80,7 +80,7 @@ impl<'r> FromRequest<'r> for Nip98Auth {
return Outcome::Error((Status::new(401), "Event signature invalid"));
}
info!("{}", event.as_json());
debug!("{}", event.as_json());
Outcome::Success(Nip98Auth { event })
} else {
Outcome::Error((Status::new(403), "Auth scheme must be Nostr"))