Merge pull request #215 from hikeri/main

Update forefront __init__.py
This commit is contained in:
t.me/xtekky 2023-04-28 09:02:16 +01:00 committed by GitHub
commit 5e8870ec1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,9 +38,12 @@ class Account:
"email_address": mail_adress "email_address": mail_adress
} }
) )
trace_token = response.json()['response']['id'] try:
if logging: print(trace_token) trace_token = response.json()['response']['id']
if logging: print(trace_token)
except KeyError:
return 'Failed to create account!'
response = client.post( response = client.post(
f"https://clerk.forefront.ai/v1/client/sign_ups/{trace_token}/prepare_verification?_clerk_js_version=4.32.6", f"https://clerk.forefront.ai/v1/client/sign_ups/{trace_token}/prepare_verification?_clerk_js_version=4.32.6",