xn-auth 0.2.54__tar.gz → 0.2.55__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.54
3
+ Version: 0.2.55
4
4
  Summary: Auth adapter for XN-Api framework
5
5
  Author-email: Artemiev <mixartemev@gmail.com>
6
6
  License: MIT
@@ -56,7 +56,8 @@ class Auth:
56
56
  {
57
57
  **user.model_dump(),
58
58
  "xid": db_user.id,
59
- "pub": db_user.pub and b64encode(db_user.pub),
59
+ "pub": b64encode(db_user.pub),
60
+ "prv": db_user.prv and b64encode(db_user.prv),
60
61
  "allows_write_to_pm": user.allows_write_to_pm or not db_user.blocked,
61
62
  }
62
63
  ),
@@ -68,4 +68,5 @@ class TgUser(Xs):
68
68
 
69
69
  class XyncUser(WebAppUser):
70
70
  xid: int
71
- pub: bytes | None
71
+ pub: bytes
72
+ prv: bytes | None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xn-auth
3
- Version: 0.2.54
3
+ Version: 0.2.55
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