Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c767dd4

Browse files
committed
Change email() default parameters
1 parent cada94b commit c767dd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

auth0/v2/authentication/passwordless.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Passwordless(AuthenticationBase):
1212
def __init__(self, domain):
1313
self.domain = domain
1414

15-
def email(self, client_id, email, send, auth_params):
15+
def email(self, client_id, email, send='link', auth_params={}):
1616
"""Start flow sending an email.
1717
1818
Given the user email address, it will send an email with:
@@ -31,9 +31,9 @@ def email(self, client_id, email, send, auth_params):
3131
3232
email (str): Email address.
3333
34-
send (str): Can be: 'link' or 'code'
34+
send (str, optional): Can be: 'link' or 'code'. Defaults to 'link'.
3535
36-
auth_params (dict): Parameters to append or override.
36+
auth_params (dict, optional): Parameters to append or override.
3737
"""
3838

3939
return self.post(

0 commit comments

Comments
 (0)