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

Provider enable token event #561

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
move ConnectWithUiEvents to wallet.ts
  • Loading branch information
Dizigen committed Jul 6, 2023
commit bf6eb47040712b93025759fcaa1af7f9037b63ea
6 changes: 5 additions & 1 deletion packages/@magic-sdk/provider/src/modules/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ import {
WalletInfo,
Wallets,
} from '@magic-sdk/types';
import { ConnectWithUiEvents } from '@magic-sdk/types/src/modules/wallet-types';
import { BaseModule } from './base-module';
import { createJsonRpcRequestPayload } from '../core/json-rpc';
import { clearKeys } from '../util/web-crypto';
import { createDeprecationWarning } from '../core/sdk-exceptions';
import { setItem, getItem, removeItem } from '../util/storage';
import { ProductConsolidationMethodRemovalVersions } from './auth';

type ConnectWithUiEvents = {
'id-token-created': (params: { idToken: string }) => void;
wallet_selected: (params: { wallet: Wallets }) => any;
};

export class WalletModule extends BaseModule {
/* Prompt Magic's Login Form */
public async connectWithUI() {
Expand Down
1 change: 0 additions & 1 deletion packages/@magic-sdk/types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ export * from './modules/auth-types';
export * from './modules/rpc-provider-types';
export * from './modules/user-types';
export * from './modules/intermediary-types';
export * from './modules/wallet-types';
6 changes: 0 additions & 6 deletions packages/@magic-sdk/types/src/modules/wallet-types.ts

This file was deleted.