Skip to content
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

Cash payouts GA Frontend Updates #426

Open
wants to merge 156 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 86 commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
2508a52
Added payout on hold alert and text props
AndiLuo Nov 19, 2024
3d1bc0c
Added more text props and stories
AndiLuo Nov 19, 2024
cb855fe
initial hook work for verification gates
Locrian24 Nov 19, 2024
b71f125
more fleshed out hooks for verification flow
Locrian24 Nov 20, 2024
5fd66c2
prefill email with user email
Locrian24 Nov 20, 2024
5f8ded6
Remove duplicate alert
AndiLuo Nov 21, 2024
0bd896d
Started creating sqm-cash-verify-email wrapper component and stories
AndiLuo Nov 27, 2024
e50b2f0
polish up styles and views
AndiLuo Nov 27, 2024
3b279cf
Added new state and verification failed story
AndiLuo Nov 27, 2024
039c3e4
initial version for local testing
Locrian24 Nov 27, 2024
98f87e2
Merge remote-tracking branch 'origin/cash-payouts-ga' into cash-payouts
Locrian24 Nov 28, 2024
87f29f6
update end user test app
Locrian24 Nov 28, 2024
c5cabd4
combine code check view
Locrian24 Nov 28, 2024
2556acd
merge in email verification views
Locrian24 Nov 29, 2024
9bb44c0
add tabs to template
Locrian24 Nov 29, 2024
21f95a2
add stories, remove cash-verify-email component
Locrian24 Nov 29, 2024
0eb441a
fix stencilbook imports
Locrian24 Nov 29, 2024
195855a
Fix code inputs in sqm-code-verification cutting off
AndiLuo Nov 29, 2024
8c5aa5b
Merge branch 'master' of github.com:saasquatch/program-tools into cas…
Locrian24 Dec 3, 2024
4b2308e
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Dec 3, 2024
d130b2c
Add error and loading states for verification widgets. Updated stories
AndiLuo Dec 3, 2024
165061a
Merge branch 'cash-payouts-ga' of https://github.com/saasquatch/progr…
AndiLuo Dec 3, 2024
64d23aa
Added error state to email verification widget
AndiLuo Dec 3, 2024
154c9cb
Made tax form iFrame responsive on mobile screens width wise
AndiLuo Dec 4, 2024
fc35e14
Added negative margin to move absolute positioned iframe to the left
AndiLuo Dec 4, 2024
8642745
update sqm-widget-verification, add 2fa when updating withdrawal sett…
Locrian24 Dec 4, 2024
da6f0d8
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Dec 4, 2024
d80f9ff
Added text props and specs for verification widgets
AndiLuo Dec 4, 2024
7752c6d
Merge branch 'cash-payouts-ga' of https://github.com/saasquatch/progr…
AndiLuo Dec 4, 2024
a837dcf
early specs
Locrian24 Dec 5, 2024
3b2c0f4
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Dec 5, 2024
575aa37
hook up code verification, move email sending to code component
Locrian24 Dec 6, 2024
23a085b
Added success alert and updated the specs
AndiLuo Dec 10, 2024
09e7e13
Added link text props to sqm-code-widget-verification
AndiLuo Dec 10, 2024
a2bed79
auto send email, hook up email mutation
Locrian24 Dec 10, 2024
dfdcab1
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Dec 10, 2024
beba336
fix error handling between set and update withdrawal settings
Locrian24 Dec 10, 2024
5c6fb22
fix issues with saving
Locrian24 Dec 10, 2024
3f8c163
payout status alert component
Locrian24 Dec 10, 2024
d7ae703
Created sqm-payout-button-scroll
AndiLuo Dec 10, 2024
b249db1
Merge branch 'cash-payouts-ga' of https://github.com/saasquatch/progr…
AndiLuo Dec 10, 2024
b015203
error text placeholders
Locrian24 Dec 10, 2024
efe553a
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Dec 10, 2024
9eaa040
scroll to tax component
Locrian24 Dec 10, 2024
501dfa7
conditionally show payout scroll button
Locrian24 Dec 10, 2024
c0523fc
Refactor payour-status-alert and added view + stories
AndiLuo Dec 11, 2024
4300873
width:
AndiLuo Dec 11, 2024
e3f1fe5
fix payout status
Locrian24 Dec 11, 2024
82a7172
Updated payout alert views
AndiLuo Dec 11, 2024
78f30c2
Merge branch 'cash-payouts-ga' of https://github.com/saasquatch/progr…
AndiLuo Dec 11, 2024
f18036d
Added prefilled email state. Removed use different email text
AndiLuo Dec 11, 2024
f996f12
Added specs and refactored payout-status-alert
AndiLuo Dec 11, 2024
5065018
pre-release versions
Locrian24 Dec 12, 2024
978d38c
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Dec 12, 2024
ce00189
upsert user if no email has been saved
Locrian24 Dec 12, 2024
dfbc8f2
fix payout status alert
Locrian24 Dec 12, 2024
089a556
Added sendCodeError state TODO. Added alert banner to sqm-email-verif…
AndiLuo Dec 12, 2024
3aed72d
Added spec
AndiLuo Dec 13, 2024
61487fa
Added ICU in code-verification-view
AndiLuo Dec 13, 2024
a06c584
small spec update
Locrian24 Dec 16, 2024
66ecf85
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Dec 16, 2024
4223a10
Better error handing, messaging
Locrian24 Dec 16, 2024
26528da
1.12.0-2 prerelease
Locrian24 Dec 16, 2024
ad8231c
1.12.0-3 prerelease
Locrian24 Dec 16, 2024
7b0b5df
ToC, editiability updates
Locrian24 Dec 17, 2024
1c06e42
1.12.0-5 prerelease
Locrian24 Dec 17, 2024
aab8531
Added payout hold alert to tax-and-cash-dashboard. Added stories and …
AndiLuo Dec 17, 2024
170b782
Updated hasHold state in useTaxAndCashDashboard
AndiLuo Dec 17, 2024
56fe461
use new mutations
Locrian24 Jan 9, 2025
1ce6f86
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Jan 9, 2025
0b06261
Added modal states to sqm-payout-status-alert
AndiLuo Jan 14, 2025
5c4ec8e
Add dialog open states
AndiLuo Jan 14, 2025
2ce5f7e
logic for switching between email verification mutations
Locrian24 Jan 15, 2025
563fc1b
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Jan 15, 2025
8d14bc8
prefer MI email for user form, properly handle the different verifica…
Locrian24 Jan 17, 2025
f105847
check if email was already verified
Locrian24 Jan 17, 2025
8e2e6ad
prerelease 1.12.0-6
Locrian24 Jan 17, 2025
24c1d3f
spinner for verification initial loading state
Locrian24 Jan 17, 2025
972fcdc
spec updates
Locrian24 Jan 17, 2025
96e7056
update user info form spec
Locrian24 Jan 17, 2025
7ae6453
make payout alert environment aware
Locrian24 Jan 20, 2025
f6d0dcb
update test template
Locrian24 Jan 20, 2025
b04dcd4
mint pre-release 1.12.0-7
Locrian24 Jan 20, 2025
685c782
handle case where publisher is null
Locrian24 Jan 20, 2025
69f0506
add error state to payout banner, fix big stat query
Locrian24 Jan 21, 2025
38687f4
1.12.0-8 mint prelease
Locrian24 Jan 21, 2025
1732d18
payout banner spec update
Locrian24 Jan 21, 2025
a2658a7
Added styling to payoutstatusalert dialog
AndiLuo Jan 21, 2025
a8da29c
Merge branch 'cash-payouts-ga' of https://github.com/saasquatch/progr…
AndiLuo Jan 21, 2025
7dcff95
update id verification check to look at hold reasons
Locrian24 Jan 21, 2025
3b3b543
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Jan 21, 2025
f86a8a5
Add Verify Identity alert + states/text props to view. Added story
AndiLuo Jan 21, 2025
6b5ee88
Merge branch 'cash-payouts-ga' of https://github.com/saasquatch/progr…
AndiLuo Jan 21, 2025
107d46c
Added spec for identity verification in tax dashboard
AndiLuo Jan 21, 2025
7499dcd
1.12.0-9 mint prerelease
Locrian24 Jan 22, 2025
84b5759
include firstname, lastname in impact connection
Locrian24 Jan 22, 2025
b4cb29b
Fix phone input misaligned when error
AndiLuo Jan 24, 2025
bbb95e0
1.12.0-10 mint prerelease
Locrian24 Jan 24, 2025
f1f29bc
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Jan 24, 2025
66fa6c1
fix upsertUser mutation, other minor fixes
Locrian24 Jan 27, 2025
4abf323
Removed error alert meant for hold reasons in PayoutDetailsCard
AndiLuo Jan 28, 2025
e20e276
mint prerelease 1.12.0-11
Locrian24 Jan 28, 2025
d24327e
hook up veriff app
Locrian24 Jan 28, 2025
a36074c
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Jan 28, 2025
5c97343
clear up unused verification dialog
Locrian24 Jan 28, 2025
b1f77b3
update dashboard and alert component when veriff is completed
Locrian24 Jan 28, 2025
01798c0
Added id verification alert copy to PayoutStatusAlert and Dashboard
AndiLuo Jan 28, 2025
294bf40
tax form change events for alert component to listen to
Locrian24 Jan 28, 2025
d3a3998
Merge branch 'cash-payouts-ga' of https://github.com/saasquatch/progr…
AndiLuo Jan 28, 2025
ba4ab2e
Merge branch 'cash-payouts-ga' of https://github.com/saasquatch/progr…
AndiLuo Jan 28, 2025
140474c
Update payout alert styling in dashboard
AndiLuo Jan 28, 2025
1bb0006
spec updates
Locrian24 Jan 29, 2025
0de2922
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Jan 29, 2025
26150d5
Update widget-verification spec
AndiLuo Jan 30, 2025
16d9a79
fixes to missing emails and bad loading states
Locrian24 Jan 30, 2025
d1972b6
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Jan 30, 2025
76ca6be
mint prerelease 1.12.0-12
Locrian24 Jan 30, 2025
2512549
Increased maxwidth for code-verification-widget
AndiLuo Jan 30, 2025
9438916
Merge branch 'cash-payouts-ga' of https://github.com/saasquatch/progr…
AndiLuo Jan 30, 2025
9e1dad9
move verification step for withdrawal setting to a modal
Locrian24 Jan 31, 2025
93d8128
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Jan 31, 2025
2f3954f
fix veriff and NPEs
Locrian24 Jan 31, 2025
0edbde3
Updated dashboard styles
AndiLuo Feb 1, 2025
84b38f6
Merge branch 'cash-payouts-ga' of https://github.com/saasquatch/progr…
AndiLuo Feb 1, 2025
f96a830
Version bump to 1.12.0-13
AndiLuo Feb 3, 2025
0a772cf
fix payout scroll button from not showing
Locrian24 Feb 4, 2025
e64865f
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Feb 4, 2025
914fa56
Added story and updates spec
AndiLuo Feb 4, 2025
1cd55a9
mint prerelease 1.12.0-14
Locrian24 Feb 4, 2025
f587910
fix alert microsite redirect
Locrian24 Feb 4, 2025
3d508a0
fix token requirements for withdrawal settings mutation
Locrian24 Feb 5, 2025
1ab3454
Update widget template to fix css bug
zachharrison Feb 6, 2025
43159af
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
zachharrison Feb 6, 2025
06a6d1c
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Feb 6, 2025
2d477f3
rename alert button prop
Locrian24 Feb 6, 2025
10c6a57
Added supportLink text prop and changed all relevant support links to…
AndiLuo Feb 7, 2025
f4146e5
remove extra string
AndiLuo Feb 7, 2025
8d48914
Fix string spacing
AndiLuo Feb 7, 2025
672af18
prerelease 1.12.0-15
Locrian24 Feb 7, 2025
6d8d24f
Fix positioning of verify modal in banking form
AndiLuo Feb 8, 2025
57e4e53
Merge branch 'cash-payouts-ga' of https://github.com/saasquatch/progr…
AndiLuo Feb 8, 2025
924189e
Updated copy and styles to verify modal in banking form. Added email …
AndiLuo Feb 11, 2025
3fcfb57
Fix payout scroll button styles
AndiLuo Feb 11, 2025
3d04d4d
change up widget verification components to fix text props
Locrian24 Feb 12, 2025
77bca00
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Feb 12, 2025
15376f1
update component documentation
Locrian24 Feb 12, 2025
5be95f0
git status
AndiLuo Feb 12, 2025
8ab9b68
Addes stories
AndiLuo Feb 12, 2025
b876be4
Added CashPayoutsReferralWidget template
AndiLuo Feb 12, 2025
8c70c73
Moved verify widget text from template level to widget
AndiLuo Feb 12, 2025
0b15002
Added text prop descriptions
AndiLuo Feb 13, 2025
a9c1558
remove outdated code
Locrian24 Feb 13, 2025
64466e7
Merge branch 'cash-payouts-ga' of github.com:saasquatch/program-tools…
Locrian24 Feb 13, 2025
ec07452
1.12.0-21 mint pre-release
Locrian24 Feb 13, 2025
309c1f7
update default tax t&c link to hosted page
Locrian24 Feb 13, 2025
547998a
Cleanup todos and add back spinner
AndiLuo Feb 14, 2025
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
34 changes: 17 additions & 17 deletions packages/bedrock-components/package-lock.json

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

4 changes: 2 additions & 2 deletions packages/bedrock-components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@saasquatch/bedrock-components",
"title": "Bedrock Components",
"version": "1.4.8",
"version": "1.5.0-0",
"description": "Component library that adds advanced logic to your widgets and pages. Built and maintained by Saasquatch.",
"icon": "https://res.cloudinary.com/saasquatch/image/upload/v1652219900/squatch-assets/For_Bedrock.svg",
"main": "dist/index.cjs.js",
Expand Down Expand Up @@ -36,7 +36,7 @@
},
"dependencies": {
"@raisins/stencil-docs-target": "^1.1.0",
"@saasquatch/component-boilerplate": "^1.6.7",
"@saasquatch/component-boilerplate": "^1.6.8-0",
"@saasquatch/dom-context-hooks": "^1.0.5",
"@saasquatch/stencil-hooks": "^2.0.2",
"@saasquatch/stencilbook": "^1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import { useTemplateChildren } from '../../utils/useTemplateChildren';
const debug = debugFn('sq:useAuthTemplateSwitch');

export function useAuthTemplateSwitch() {
const authToken = useToken();
const token = useToken();

const [container, setContainer] = useState<HTMLDivElement>(undefined);
const [slot, setSlot] = useState<HTMLDivElement>(undefined);

if (!authToken) debug('No user identity available');
if (!token) debug('No user identity available');

const updateTemplates = useCallback(() => {
const isAuth = !!authToken;
const isAuth = !!token;
const templates = slot.querySelectorAll<HTMLTemplateElement>(`template`);
const template = Array.from(templates).find(t => t.slot === (isAuth ? 'logged-in' : 'logged-out'));

Expand Down Expand Up @@ -69,7 +69,7 @@ export function useAuthTemplateSwitch() {
target.style.height = '25px';
});
}
}, [container, slot, authToken]);
}, [container, slot, token]);

useEffect(() => {
if (!container || !slot) {
Expand All @@ -81,7 +81,7 @@ export function useAuthTemplateSwitch() {
updateTemplates();

return useTemplateChildren({ parent: slot, callback: updateTemplates });
}, [slot, container, authToken]);
}, [slot, container, token]);

return {
setSlot,
Expand Down
18 changes: 9 additions & 9 deletions packages/component-boilerplate/package-lock.json

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

4 changes: 2 additions & 2 deletions packages/component-boilerplate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@saasquatch/component-boilerplate",
"version": "1.6.7",
"version": "1.6.8-0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs a real version number before release

"private": false,
"description": "Boilerplate for writing web components for the SaaSquatch widget environments",
"source": "src/index.ts",
Expand Down Expand Up @@ -40,7 +40,7 @@
},
"dependencies": {
"@formatjs/intl": "^1.8.2",
"@saasquatch/component-environment": "^1.0.8",
"@saasquatch/component-environment": "^1.0.9-0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Bump after releasing package

"@saasquatch/dom-context-hooks": "^1.0.5",
"@saasquatch/stencil-hooks": "^2.0.2",
"@saasquatch/universal-hooks": "^1.0.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/component-boilerplate/src/hooks/environment/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const useEngagementMedium = getEngagementMedium;
export {
getEnvironmentSDK,
setUserIdentity,
setVerificationContext,
setProgramId,
isDemo,
DecodedSquatchJWT,
Expand All @@ -20,3 +21,4 @@ export {
export * from "./useLocale";
export * from "./useProgramId";
export * from "./useUserIdentity";
export * from "./useVerificationContext";
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { useUserIdentity } from "./useUserIdentity";
import { useVerificationContext } from "./useVerificationContext";

export function useQueryToken() {
const verificationToken = useVerificationContext()?.token;
const userJwt = useUserIdentity()?.jwt;

return verificationToken || userJwt;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import {
checkVerificationToken,
isDemo,
lazilyStartVerificationContext,
setVerificationContext,
VERIFICATION_CONTEXT_NAME,
VerificationContext,
} from "@saasquatch/component-environment";
import { useDomContext } from "@saasquatch/dom-context-hooks";
import { useHost } from "../useHost";

export function useVerificationContext(): VerificationContext | undefined {
lazilyStartVerificationContext();
const host = useHost();
const context = useDomContext(host, VERIFICATION_CONTEXT_NAME) as
| VerificationContext
| undefined;

const valid = checkVerificationToken(context?.token);
if (!isDemo() && context && !valid) {
setVerificationContext(undefined);
return undefined;
}

return context;
}

export function useVerificationToken() {
return useVerificationContext()?.token;
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ function reducer<T>(
export function useBaseQuery<T = any>(
query: GqlType,
initialState: BaseQueryData<T>,
options = { batch: true }
options = { batch: true, protected: false }
): [
BaseQueryData<T>,
(variables: unknown, skipLoading?: boolean) => Promise<T | Error>
] {
const client = useGraphQLClient();
const client = useGraphQLClient({ protected: options.protected });
const [state, dispatch] = useReducer<BaseQueryData<T>, Action<T>>(
reducer,
initialState
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ import memoize from "fast-memoize";
import { BatchedGraphQLClient } from "../../BatchedGraphQLClient";
import { useAppDomain, useTenantAlias, useToken } from "../environment";
import { useHost } from "../useHost";
import { useQueryToken } from "../environment/useQueryToken";
import { useVerificationContext } from "../environment/useVerificationContext";

type Options = {
protected?: boolean;
};

export const GRAPHQL_CONTEXT = "sq:graphql-client";

Expand All @@ -23,16 +29,17 @@ function createGraphQlClient(

export const memoizedGraphQLClient = memoize(createGraphQlClient);

function useGraphQLClient(): BatchedGraphQLClient {
function useGraphQLClient(options?: Options): BatchedGraphQLClient {
const token = useToken();
const verifiedToken = useVerificationContext()?.token;
const appDomain = useAppDomain();
const tenantAlias = useTenantAlias();

// Memoization is shared. One client per domain, tenant and token (or null)
const localClient: BatchedGraphQLClient = memoizedGraphQLClient(
appDomain,
tenantAlias,
token
options?.protected ? verifiedToken : token
);
const host = useHost();
const clientFromContext = useDomContext<BatchedGraphQLClient>(
Expand Down
3 changes: 2 additions & 1 deletion packages/component-boilerplate/src/hooks/graphql/useQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ export function useQuery<T = any>(
query: GqlType,
variables: unknown,
skip?: boolean,
options?: { batch?: boolean }
options?: { batch?: boolean; protected?: boolean }
): QueryData<T> {
const [state, update] = useBaseQuery<T>(
query,
initialQueryState as BaseQueryData<T>,
{
batch: true,
protected: false,
...(options || {}),
}
);
Expand Down
2 changes: 1 addition & 1 deletion packages/component-environment/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@saasquatch/component-environment",
"version": "1.0.8",
"version": "1.0.9-0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs real version bumber

"description": "Environment and contexts for SaaSquatch components",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export function userIdentityFromJwt(jwt?: string): UserIdentity | undefined {

let userId: string | undefined = undefined;
let accountId: string | undefined = undefined;
let email: string | undefined = undefined;

if (isDecodedWidgetAPIJWT(decoded)) {
// Pull the accountId and userId from the subject and Base64-decode them
Expand All @@ -72,6 +73,7 @@ export function userIdentityFromJwt(jwt?: string): UserIdentity | undefined {
} else if (isDecodedSquatchJWT(decoded)) {
accountId = decoded.user.accountId;
userId = decoded.user.id;
email = decoded.user.email;
}

if (!userId || !accountId) {
Expand All @@ -88,6 +90,7 @@ export function userIdentityFromJwt(jwt?: string): UserIdentity | undefined {
return {
id: userId,
accountId: accountId,
email,
jwt,
};
} catch (e) {
Expand All @@ -112,6 +115,7 @@ function _getInitialValue(): UserIdentity | undefined {
return {
id: sdk.widgetIdent.userId,
accountId: sdk.widgetIdent.accountId,
email: sdk.widgetIdent.email,
jwt: sdk.widgetIdent.token,
};
case "SquatchPortal":
Expand Down
Loading
Loading