rb-commons 0.1.12__py3-none-any.whl → 0.1.14__py3-none-any.whl

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.
rb_commons/schemes/jwt.py CHANGED
@@ -21,7 +21,7 @@ class Claims(BaseModel):
21
21
  def from_headers(cls, headers: dict) -> 'Claims':
22
22
  raw_claims = {
23
23
  "x-user-id": headers.get("x-user-id"),
24
- "x-user-role": headers.get("x-user-role"),
24
+ "x-user-role": headers.get("x-user-role", "admin"),
25
25
  "x-shop-id": headers.get("x-shop-id")
26
26
  }
27
27
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rb-commons
3
- Version: 0.1.12
3
+ Version: 0.1.14
4
4
  Summary: Commons of project and simplified orm based on sqlalchemy.
5
5
  Home-page: https://github.com/RoboSell-organization/rb-commons
6
6
  Author: Abdulvoris
@@ -6,8 +6,8 @@ rb_commons/orm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  rb_commons/orm/exceptions.py,sha256=1aMctiEwrPjyehoXVX1l6ML5ZOhmDkmBISzlTD5ey1Y,509
7
7
  rb_commons/orm/managers.py,sha256=VopUw29sCXrPTriBALR9qwkG5yCu6BDHRgR7cCygNiE,6726
8
8
  rb_commons/schemes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- rb_commons/schemes/jwt.py,sha256=4dYL0Bg9kO7kiNgV0J1gBdhh8bYxm75cuqrWCwkV4iE,1666
10
- rb_commons-0.1.12.dist-info/METADATA,sha256=6wARwc1n7JkEZI95GLkcI0Wq2emFmvZdJ01HwO59N9A,6533
11
- rb_commons-0.1.12.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
12
- rb_commons-0.1.12.dist-info/top_level.txt,sha256=HPx_WAYo3_fbg1WCeGHsz3wPGio1ucbnrlm2lmqlJog,11
13
- rb_commons-0.1.12.dist-info/RECORD,,
9
+ rb_commons/schemes/jwt.py,sha256=F66JJDhholuOPPzlKeoC6f1TL4gXg4oRUrV5yheNpyo,1675
10
+ rb_commons-0.1.14.dist-info/METADATA,sha256=C9gd_r_xXK_-GzP7_VLj5xC5EQxfDkUJGT0AxGboHZc,6533
11
+ rb_commons-0.1.14.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
12
+ rb_commons-0.1.14.dist-info/top_level.txt,sha256=HPx_WAYo3_fbg1WCeGHsz3wPGio1ucbnrlm2lmqlJog,11
13
+ rb_commons-0.1.14.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (75.8.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5