Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect nostr.build account #2215

Open
1 task
Tracked by #2216
jb55 opened this issue May 6, 2024 · 4 comments
Open
1 task
Tracked by #2216

Detect nostr.build account #2215

jb55 opened this issue May 6, 2024 · 4 comments

Comments

@jb55
Copy link
Collaborator

jb55 commented May 6, 2024

We need to know if we are authed to nostr.build and have an active account. This is needed for warning about file size limits before upload.

Perhaps we can do an http nostr auth check somehow, but we would still want to know the upload size limit. We may need:

for this

@fishcakeday
Copy link
Contributor

I can implement an API that will tell you the actual upload limit for NB and probably make it compliant with NIP-96 or any other API. Should not be too hard.

@jb55
Copy link
Collaborator Author

jb55 commented May 6, 2024

@fishcakeday no rush, we don't have this scheduled in any sprint atm

@fishcakeday
Copy link
Contributor

@fishcakeday no rush, we don't have this scheduled in any sprint atm

curl https://nostr.build/api/v2/upload/limit is implemented, it will check based on your NIP98 authentication or return a free upload limit by default with no headers:

{
  "status": "success",
  "message": "Upload limit retrieved successfully",
  "data": {
    "limit": 11534336
  }
}

@jb55
Copy link
Collaborator Author

jb55 commented May 6, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

3 participants