From 00d441d17da27c1468b5b9a023bb2c91701ce39c Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 20 Apr 2022 19:07:07 +0100 Subject: [PATCH] Add verification callback --- handler/app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/handler/app.py b/handler/app.py index 9d9cfeb..ef1b944 100755 --- a/handler/app.py +++ b/handler/app.py @@ -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/", methods=["GET"]) def balance(self, request, account): accounts = self.sinks.truelayer.get_accounts(account)