Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
21 changes: 20 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/utils/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,12 @@ export type AuthOptions = {
* @defaultValue true
*/
includeUserDataInToken?: boolean;

/**
* The client id of the dapp that initiates the login flow in **EMBED** mode.
* @defaultValue undefined
*/
wsEmbedDappClientId?: string;
};

export interface BaseLoginParams {
Expand All @@ -564,6 +570,12 @@ export interface BaseLoginParams {
* Optional login source to be used for analytics purposes.
*/
loginSource?: string;

/**
* The client id of the dapp that initiates the login flow in **EMBED** mode.
* @defaultValue undefined
*/
wsEmbedDappClientId?: string;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wsEmbedDappClientId added to BaseLoginParams but never populated

High Severity

The wsEmbedDappClientId field is added to both AuthOptions and BaseLoginParams, but the code in auth.ts that constructs BaseLoginParams objects (in authHandler and manageMFA) is never updated to include wsEmbedDappClientId: this.options.wsEmbedDappClientId. This means the value accepted via AuthOptions will never be forwarded to the auth-service through the URL config params, making the feature non-functional for the default flow.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit a389621. Configure here.

}

export interface AuthRequestPayload {
Expand Down
Loading