Do this https://gitlab.com/passit/passit-backend/blob/master/apps/access/tests/test_backup_code.py#L88 in the sdk.