Skip to content

Commit

Permalink
docs: add comment for email preferences over phone
Browse files Browse the repository at this point in the history
  • Loading branch information
leynier committed Nov 4, 2021
1 parent c2d37fb commit e900c49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion gotrue/_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ async def sign_up(
redirect_to: Optional[str] = None,
data: Optional[dict[str, Any]] = None,
) -> Union[Session, User]:
"""Creates a new user.
"""Creates a new user. If email and phone are provided, email will be
used and phone will be ignored.
Parameters
---------
Expand Down Expand Up @@ -155,6 +156,7 @@ async def sign_in(
scopes: Optional[str] = None,
) -> Optional[Union[Session, str]]:
"""Log in an existing user, or login via a third-party provider.
If email and phone are provided, email will be used and phone will be ignored.
Parameters
---------
Expand Down
4 changes: 3 additions & 1 deletion gotrue/_sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def sign_up(
redirect_to: Optional[str] = None,
data: Optional[dict[str, Any]] = None,
) -> Union[Session, User]:
"""Creates a new user.
"""Creates a new user. If email and phone are provided, email will be
used and phone will be ignored.
Parameters
---------
Expand Down Expand Up @@ -155,6 +156,7 @@ def sign_in(
scopes: Optional[str] = None,
) -> Optional[Union[Session, str]]:
"""Log in an existing user, or login via a third-party provider.
If email and phone are provided, email will be used and phone will be ignored.
Parameters
---------
Expand Down

0 comments on commit e900c49

Please sign in to comment.