From 83917d852a79129bda128c291415c8f424e90bb8 Mon Sep 17 00:00:00 2001 From: nQuiz <136030508+nQuiz@users.noreply.github.com> Date: Tue, 16 Jan 2024 19:38:31 +0000 Subject: [PATCH] Update OAUTH-LIKE-FLOW.md minor typos --- OAUTH-LIKE-FLOW.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OAUTH-LIKE-FLOW.md b/OAUTH-LIKE-FLOW.md index 31f7715..2046170 100644 --- a/OAUTH-LIKE-FLOW.md +++ b/OAUTH-LIKE-FLOW.md @@ -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 "_": "", "pablo": "fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52", }, - "relays: { + "relays": { "pablo": [ "wss://nos.lol", "" ] }, "nip46": {