Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion src/components/home/wallet/connect-cli.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function Content({ wallet, isConnecting, connect, error, form, onSwitch, rootRef
const [signMessage, setSignMessage] = useState<string>();
const [isLoading, setIsLoading] = useState(false);

const requiresKey = [Blockchain.CARDANO, Blockchain.ARWEAVE].includes(blockchain);
const requiresKey = [Blockchain.CARDANO, Blockchain.ARWEAVE, Blockchain.INTERNET_COMPUTER].includes(blockchain);
const hasKey = !requiresKey || key;

useEffect(() => {
Expand Down
4 changes: 4 additions & 0 deletions src/contexts/app-handling.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const urlParamsToRemove = [
'lang',
'address',
'signature',
'key',
'mail',
'account-type',
'first-name',
Expand Down Expand Up @@ -67,6 +68,7 @@ export interface AppParams {
lang?: string;
address?: string;
signature?: string;
key?: string;
mail?: string;
accountType?: string;
firstName?: string;
Expand Down Expand Up @@ -244,6 +246,7 @@ export function AppHandlingContextProvider(props: AppHandlingContextProps): JSX.

delete copy.address;
delete copy.signature;
delete copy.key;
delete copy.session;
delete copy.autoStart;

Expand Down Expand Up @@ -308,6 +311,7 @@ export function AppHandlingContextProvider(props: AppHandlingContextProps): JSX.
lang: getParameter(query, 'lang'),
address: getParameter(query, 'address'),
signature: getParameter(query, 'signature'),
key: getParameter(query, 'key'),
mail: getParameter(query, 'mail'),
accountType: getParameter(query, 'account-type'),
firstName: getParameter(query, 'first-name'),
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/wallet.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export function WalletContextProvider(props: WalletContextProps): JSX.Element {

// Set credentials BEFORE async call to prevent race conditions (React StrictMode double-render)
lastAppliedCredentials.current = { address: appParams.address, signature: appParams.signature };
await createSession(appParams.address, appParams.signature);
await createSession(appParams.address, appParams.signature, appParams.key);
return true;
} else if (appParams.session && Utils.isJwt(appParams.session)) {
// Skip if same session was already applied
Expand Down
1 change: 1 addition & 0 deletions src/index-widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const props: { [k in keyof WidgetParams]: 'string' | 'number' | 'boolean' | 'fun
lang: 'string',
address: 'string',
signature: 'string',
key: 'string',
mail: 'string',
accountType: 'string',
firstName: 'string',
Expand Down
Loading