Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

SCAL-233969: Add preauth info call, emit Info call success event Iframe load #100

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ajeet-lakhani-ts
Copy link

No description provided.

Copy link

pkg-pr-new bot commented Jan 17, 2025

Open in Stackblitz

npm i https://pkg.pr.new/thoughtspot/visual-embed-sdk/@thoughtspot/visual-embed-sdk@100

commit: 0c48c47

src/utils/processTrigger.ts Outdated Show resolved Hide resolved
src/embed/ts-embed.ts Show resolved Hide resolved
src/embed/ts-embed.ts Show resolved Hide resolved
@@ -167,6 +172,7 @@ export async function notifyAuthSuccess(): Promise<void> {
return;
}
try {
getPreauthInfo();
const sessionInfo = await getSessionInfo();
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we replace this getSessionInfo with the getPreauthInfo here? Better to avoid multiple api calls.

Copy link
Contributor

Choose a reason for hiding this comment

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

Or update the getSessionInfo to call getPreauthInfo internally and replace the dependency on old /info call

Copy link
Author

Choose a reason for hiding this comment

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

This is decided with TSE to keep both APIs as older customers won't have preauth info API. Check more detail here - https://thoughtspot.slack.com/archives/C082G97N8BZ/p1732810938126219

Screenshot 2025-02-13 at 9 17 39 AM

src/auth.ts Show resolved Hide resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants