☰
Debian Codegraph
@
19.0.0+dfsg-1
/
/
addons
/
auth_passkey
/
_vendor
/
webauthn
/
helpers
/
bytes_to_base64url.py
☽
☼
addons/auth_passkey/_vendor/webauthn/helpers/bytes_to_base64url.py
code
plain
raw
LGPL-3+
2004-2026 Odoo SA
debian/copyright
1
from base64 import urlsafe_b64encode
2
3
4
def bytes_to_base64url(val: bytes) -> str:
5
"""
6
Base64URL-encode the provided bytes
7
"""
8
return urlsafe_b64encode(val).decode("utf-8").rstrip("=")