switch NIP-97 URL to /.well-known/nostr/nip97

This commit is contained in:
Semisol 2024-03-01 17:36:13 +03:00 committed by GitHub
parent 8416ed6f8c
commit ac6909c062
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
97.md
View File

@ -18,7 +18,7 @@ This login URI can be presented as a clickable link, a QR code or a copyable str
A client that wishes to log in to a service SHOULD display the domain associated with the service to the end user before allowing them to log in to prevent services showing a login string for another service. A client that wishes to log in to a service SHOULD display the domain associated with the service to the end user before allowing them to log in to prevent services showing a login string for another service.
After the user approves the login, the client should send a POST request to `/.well-known/nostr-login` to the `domain` with the `i` query parameter set to the `challenge` and a valid NIP-98 authentication header present. After the user approves the login, the client should send a POST request to `/.well-known/nostr/nip97` to the `domain` with the `i` query parameter set to the `challenge` and a valid NIP-98 authentication header present.
The response MUST be a JSON object, with the format: The response MUST be a JSON object, with the format:
```json ```json