This commit is contained in:
Chris kerr 2024-04-16 23:02:41 -04:00
parent f4e97eb283
commit 47b76ff41c
2 changed files with 10 additions and 10 deletions

View File

@ -1,14 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Nostr Authentication Example</title>
</head>
<body>
</head>
<body>
<h1>Nostr Authentication Example</h1>
<button>Log in with Browser Extension (NIP-07)</button>
<script type="module" src="index.js"></script>
</body>
</body>
</html>

View File

@ -23,13 +23,13 @@ TODO:
Check for security make sure I can't get around it some easy way at least.
new npub with proper nip05 and username access?
grab preferred relays from nip (notepress has an example in setup.js) instead of using an explicit one.
I can just make a manual post request with curl to /upload with a nip05 that already hasa folder and upload whatever. The credentiasl need to be in the backend
Create directory for a user it doesn't already exist. UI think upload will fail right now if the user doesn't already have a directory
Create directory for a user it doesn't already exist. I think upload will fail right now if the user doesn't already have a directory
need provisions to catch if the user is uploading a file with the same name as a file already in their storage, ask to replace or rename the new file
config for max file size and default storage limit for a given user
config for max file size and default storage limit for any given user
can make a exceptions later to allow more storage for a user based on criterea