(value: Union[bytes, str])
| 14 | |
| 15 | |
| 16 | def force_bytes(value: Union[bytes, str]) -> bytes: |
| 17 | if isinstance(value, str): |
| 18 | return value.encode("utf-8") |
| 19 | elif isinstance(value, bytes): |
| 20 | return value |
| 21 | else: |
| 22 | raise TypeError("Expected a string value") |
| 23 | |
| 24 | |
| 25 | def base64url_decode(input: Union[bytes, str]) -> bytes: |
searching dependent graphs…