-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix(oidc-provider): resolve getSignedCookie return type #6346
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(oidc-provider): resolve getSignedCookie return type #6346
Conversation
|
@bytaesu is attempting to deploy a commit to the better-auth Team on Vercel. A member of the Team first needs to authorize it. |
better-auth
@better-auth/cli
@better-auth/core
@better-auth/expo
@better-auth/passkey
@better-auth/scim
@better-auth/sso
@better-auth/stripe
@better-auth/telemetry
commit: |
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.
Pull request overview
This PR fixes a type handling issue with the getSignedCookie method in the OIDC provider plugin. The method returns a nullable value (string | null | undefined), but the previous code was directly assigning its result to consentCode without proper null checking, which could cause type errors.
Key changes:
- Properly handles the nullable return type of
getSignedCookieby assigning to an intermediate variable and checking for truthiness before use
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
No issues found across 1 file
|
This PR resolves all remaining type mismatches from the |
Return type updated -> better-auth/better-call#81
Summary by cubic
Handled nullable return from getSignedCookie in the OIDC consent flow. We now set consentCode only when the "oidc_consent_prompt" cookie exists, resolving type errors and preventing undefined assignments.
Written for commit 4d5853c. Summary will update automatically on new commits.