Add verification callback

This commit is contained in:
Mark Veidemanis 2022-04-20 19:07:07 +01:00
parent b07dfad37e
commit 00d441d17d
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 6 additions and 0 deletions

View File

@ -77,6 +77,12 @@ class WebApp(util.Base):
# self.sinks.truelayer.handle_authcode_received(code)
return dumps(True)
@app.route("/callback-verify", methods=["POST"])
def callback_verify(self, request):
# code = request.args[b"code"]
rtrn = self.ux.verify.handle_callback(request)
return dumps(rtrn)
@app.route("/accounts/<string:account>", methods=["GET"])
def balance(self, request, account):
accounts = self.sinks.truelayer.get_accounts(account)