🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@bytaesu
Copy link
Member

@bytaesu bytaesu commented Nov 27, 2025

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.

Copilot AI review requested due to automatic review settings November 27, 2025 02:27
@vercel
Copy link

vercel bot commented Nov 27, 2025

@bytaesu is attempting to deploy a commit to the better-auth Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 27, 2025

Open in StackBlitz

better-auth

npm i https://pkg.pr.new/better-auth/better-auth@6346

@better-auth/cli

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/cli@6346

@better-auth/core

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/core@6346

@better-auth/expo

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/expo@6346

@better-auth/passkey

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/passkey@6346

@better-auth/scim

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/scim@6346

@better-auth/sso

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/sso@6346

@better-auth/stripe

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/stripe@6346

@better-auth/telemetry

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/telemetry@6346

commit: 4d5853c

Copy link
Contributor

Copilot AI left a 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 getSignedCookie by 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.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a 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

@bytaesu
Copy link
Member Author

bytaesu commented Nov 27, 2025

This PR resolves all remaining type mismatches from the better-call update. cc @Bekacru

@Bekacru Bekacru merged commit b2c52ea into better-auth:canary Nov 27, 2025
15 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants