Add proxy endpoints for login/verify links #263
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds
login/verifyproxy endpoints to resolve theCORSissue for the dev mode of the BFXusername/pwdauth for the following links:loginToBFXrequest example{ "method": "loginToBFX", "params": { "login": "user-name", "password": "user-pwd" } }loginToBFXresponse example{ "jsonrpc": "2.0", "result": [ "12345678-8888-4321-1234-8cb090a01360", [ [ "otp", true ] ] ], "id": null }loginToBFXresponse example if wrong login{ "jsonrpc": "2.0", "error": { "code": 401, "message": "Unauthorized", "data": null }, "id": null }verifyOnBFXrequest example{ "method": "verifyOnBFX", "params": { "loginToken": "12345678-8888-4321-1234-8cb090a01360", "token": "123456", "verifyMethod": "otp" } }verifyOnBFXresponse example{ "jsonrpc": "2.0", "result": [ "pub:api:12345678-9999-5555-1234-5499998e10ff-caps:s:o:f:w:wd:a-write", "2023-03-21T12:00:00.000Z" ], "id": null }verifyOnBFXresponse example if wrong token{ "jsonrpc": "2.0", "error": { "code": 401, "message": "Unauthorized", "data": null }, "id": null }Depends on this PR: