-
-
Notifications
You must be signed in to change notification settings - Fork 38
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: add AuthOtpResponse #419
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,12 @@ class AuthResponse(BaseModel): | |
session: Union[Session, None] = None | ||
|
||
|
||
class AuthOtpResponse(BaseModel): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (llm): Introducing |
||
user: None = None | ||
session: None = None | ||
message_id: Union[str, None] = None | ||
|
||
|
||
class OAuthResponse(BaseModel): | ||
provider: Provider | ||
url: str | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (llm): Switching the transformation function to
parse_auth_otp_response
for OTP sign-ins is a logical step following the introduction ofAuthOtpResponse
. This change ensures that the response parsing is aligned with the expected response structure. It's a good practice to verify that the transformation function correctly handles all possible response variations to avoid runtime errors.