xn-auth 0.2.51__tar.gz → 0.2.52__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.51
3
+ Version: 0.2.52
4
4
  Summary: Auth adapter for XN-Api framework
5
5
  Author-email: Artemiev <mixartemev@gmail.com>
6
6
  License: MIT
@@ -1,3 +1,4 @@
1
+ import logging
1
2
  from base64 import b64encode
2
3
  from datetime import timedelta
3
4
 
@@ -76,7 +77,9 @@ class Auth:
76
77
  try:
77
78
  twaid: WebAppInitData = safe_parse_webapp_init_data(self.jwt.token_secret, tid)
78
79
  except ValueError as e:
80
+ logging.error(e)
79
81
  raise NotAuthorizedException(detail=f"Tg Initdata invalid {e}")
82
+ logging.warning({tid: twaid})
80
83
  return await user_proc(twaid.user)
81
84
 
82
85
  self.tma_handler = tma
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xn-auth
3
- Version: 0.2.51
3
+ Version: 0.2.52
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
File without changes