Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion descope/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,19 @@ def sign_up_otp(

def sign_in_otp(self, method: DeliveryMethod, identifier: str) -> None:
"""
DOC
Sign in a user by OTP

Args:
method (DeliveryMethod): The OTP method you would like to verify the code
sent to you (by the same delivery method)

identifier (str): The identifier based on the chosen delivery method,
For email it should be the email address.
For phone it should be the phone number you would like to get the code
For whatsapp it should be the phone number you would like to get the code

Raise:
AuthException: for any case sign up by otp operation failed
"""

if not self._verify_delivery_method(method, identifier):
Expand Down
3 changes: 2 additions & 1 deletion liccheck.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ authorized_licenses:
mit license
python software foundation
python software foundation license
zpl 2.1


unauthorized_licenses:
gpl v3
gnu lgpl
lgpl with exceptions or zpl
zpl 2.1

[Authorized Packages]
# Apache-2.0 license
Expand Down