From 140ca98511cb80f3c53b286aade444fa013fad25 Mon Sep 17 00:00:00 2001 From: Guy Pilosof Date: Tue, 31 May 2022 11:33:52 +0300 Subject: [PATCH] update the authorized license list + fix doc for the signin_otp function --- descope/auth.py | 14 +++++++++++++- liccheck.ini | 3 ++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/descope/auth.py b/descope/auth.py index 03d3c353d..df11154d7 100644 --- a/descope/auth.py +++ b/descope/auth.py @@ -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): diff --git a/liccheck.ini b/liccheck.ini index 1df5d0ea0..b5470bcb1 100644 --- a/liccheck.ini +++ b/liccheck.ini @@ -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