Skip to content

Commit

Permalink
update the authorized license list + fix doc for the signin_otp funct…
Browse files Browse the repository at this point in the history
…ion (#2)
  • Loading branch information
guyp-descope committed May 31, 2022
1 parent a76d544 commit 1258096
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
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

0 comments on commit 1258096

Please sign in to comment.