def decode_payload(payload: str) ->str:
    """ Decode payload with URL-safe base64url. """
    from base64 import urlsafe_b64decode
    result: bytes = urlsafe_b64decode(payload + '=' * (4 - len(payload) % 4))
    return result.decode()
