Helper method to base64url_encode a string. Args: input (bytes): A base64url_encoded string (bytes) to encode.
(input)
| 79 | |
| 80 | |
| 81 | def base64url_encode(input): |
| 82 | """Helper method to base64url_encode a string. |
| 83 | |
| 84 | Args: |
| 85 | input (bytes): A base64url_encoded string (bytes) to encode. |
| 86 | |
| 87 | """ |
| 88 | return base64.urlsafe_b64encode(input).replace(b"=", b"") |
| 89 | |
| 90 | |
| 91 | def timedelta_total_seconds(delta): |
no outgoing calls
no test coverage detected
searching dependent graphs…