Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update invite user by email option type #588

Merged
merged 1 commit into from
Sep 2, 2024
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
4 changes: 2 additions & 2 deletions supabase_auth/_async/gotrue_admin_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
AuthMFAAdminListFactorsResponse,
GenerateLinkParams,
GenerateLinkResponse,
Options,
InviteUserByEmailOptions,
SignOutScope,
User,
UserResponse,
Expand Down Expand Up @@ -57,7 +57,7 @@ async def sign_out(self, jwt: str, scope: SignOutScope = "global") -> None:
async def invite_user_by_email(
self,
email: str,
options: Options = {},
options: InviteUserByEmailOptions = {},
) -> UserResponse:
"""
Sends an invite link to an email address.
Expand Down
4 changes: 2 additions & 2 deletions supabase_auth/_sync/gotrue_admin_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
AuthMFAAdminListFactorsResponse,
GenerateLinkParams,
GenerateLinkResponse,
Options,
InviteUserByEmailOptions,
SignOutScope,
User,
UserResponse,
Expand Down Expand Up @@ -57,7 +57,7 @@ def sign_out(self, jwt: str, scope: SignOutScope = "global") -> None:
def invite_user_by_email(
self,
email: str,
options: Options = {},
options: InviteUserByEmailOptions = {},
) -> UserResponse:
"""
Sends an invite link to an email address.
Expand Down
5 changes: 5 additions & 0 deletions supabase_auth/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ class Options(TypedDict):
captcha_token: NotRequired[str]


class InviteUserByEmailOptions(TypedDict):
redirect_to: NotRequired[str]
data: NotRequired[Any]


class AuthResponse(BaseModel):
user: Union[User, None] = None
session: Union[Session, None] = None
Expand Down
Loading