xn-auth 0.2.52__tar.gz → 0.2.54__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xn-auth
3
- Version: 0.2.52
3
+ Version: 0.2.54
4
4
  Summary: Auth adapter for XN-Api framework
5
5
  Author-email: Artemiev <mixartemev@gmail.com>
6
6
  License: MIT
@@ -61,6 +61,7 @@ class Auth:
61
61
  }
62
62
  ),
63
63
  )
64
+ logging.warning({db_user.id: res.cookies[0]})
64
65
  res.cookies[0].httponly = False
65
66
  return res
66
67
 
@@ -79,7 +80,6 @@ class Auth:
79
80
  except ValueError as e:
80
81
  logging.error(e)
81
82
  raise NotAuthorizedException(detail=f"Tg Initdata invalid {e}")
82
- logging.warning({tid: twaid})
83
83
  return await user_proc(twaid.user)
84
84
 
85
85
  self.tma_handler = tma
@@ -62,6 +62,9 @@ class JWTAuthMiddleware(JWTCookieAuthenticationMiddleware):
62
62
  # noinspection PyUnresolvedReferences
63
63
  scope["state"]["_ls_connection_state"].headers = Headers({"authorization": "Bearer " + uet})
64
64
  await super().__call__(scope, receive, send_wrapper)
65
+ except Exception as e:
66
+ logging.error(scope)
67
+ raise e
65
68
  # except NotAuthorizedException as e:
66
69
  # if e.detail == "No JWT token found in request header or cookies" and e.status_code == 401:
67
70
  # return e
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xn-auth
3
- Version: 0.2.52
3
+ Version: 0.2.54
4
4
  Summary: Auth adapter for XN-Api framework
5
5
  Author-email: Artemiev <mixartemev@gmail.com>
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes