mirror of
https://github.com/kind-0/nsecbunkerd.git
synced 2025-03-17 13:22:54 +01:00
Merge pull request #25 from nQuiz/patch-1
chore: minor typos / formatting
This commit is contained in:
commit
f9eb2d8898
@ -1,6 +1,6 @@
|
||||
# OAuth-like flow
|
||||
|
||||
The OAuth-like flow is a way to create new users in the bunker remotely. This is an interesting flow since it allows users to create accounts without having to install any extension or having to deal with key management, while retaining the function of interoperability with other NIP-46-supporting clients.
|
||||
The OAuth-like flow is a way to create new users in the bunker remotely. This is an interesting flow since it allows users to create accounts without having to install an extension nor deal with key management, while retaining the function of interoperability with other NIP-46-supporting clients.
|
||||
|
||||
The way it works is, a new user goes to a client that implements this flow, when they click 'register':
|
||||
|
||||
@ -8,7 +8,7 @@ The way it works is, a new user goes to a client that implements this flow, when
|
||||
* to accomplish this, the client can hardcode using their own backend or they can use NIP-89 to find nsecbunker providers.
|
||||
* if using non-trusted (i.e. from NIP-89) the client should validate that the bunker's pubkey `kind:0` has a valid NIP-05 with the `_@domain` identifier.
|
||||
* the client generates a local key and stores it in the user's device. **This is the local key the client will use to sign on behalf of the user**
|
||||
* the client uses this key to send an `create_account` command to the selected bunker:
|
||||
* the client uses this key to send a `create_account` command to the selected bunker:
|
||||
```json
|
||||
{
|
||||
"content": nip04_encrypt("{
|
||||
@ -30,7 +30,7 @@ In the background, the bunker will have configured the requested NIP-05 mapping
|
||||
"_": "<bunker-pubkey>",
|
||||
"pablo": "fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52",
|
||||
},
|
||||
"relays: {
|
||||
"relays": {
|
||||
"pablo": [ "wss://nos.lol", "<etc>" ]
|
||||
},
|
||||
"nip46": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user