@toruslabs/base-controllers
Advanced tools
Comparing version 5.2.5 to 5.2.6
@@ -81,2 +81,5 @@ import type { JRPCEngineEndCallback, JRPCEngineNextCallback, JRPCRequest, JRPCResponse } from "@toruslabs/openlogin-jrpc"; | ||
}>; | ||
loginWithSessionId: (req: Ihandler<[string, string]>) => Promise<{ | ||
success: boolean; | ||
}>; | ||
showWalletConnect: (req: JRPCRequest<[]>, res: JRPCResponse<boolean>, next: JRPCEngineNextCallback, end: JRPCEngineEndCallback) => void; | ||
@@ -83,0 +86,0 @@ showCheckout: (req: JRPCRequest<[]>, res: JRPCResponse<boolean>, next: JRPCEngineNextCallback, end: JRPCEngineEndCallback) => void; |
@@ -59,2 +59,3 @@ export declare const FEATURES_PROVIDER_CHANGE_WINDOW: { | ||
SHOW_WALLET_UI: string; | ||
LOGIN_WITH_SESSION_ID: string; | ||
}; | ||
@@ -61,0 +62,0 @@ export declare const PROVIDER_JRPC_METHODS: { |
@@ -58,17 +58,17 @@ /// <reference types="node" /> | ||
export declare const LOGIN_PROVIDER: { | ||
GOOGLE: string; | ||
FACEBOOK: string; | ||
REDDIT: string; | ||
DISCORD: string; | ||
TWITCH: string; | ||
APPLE: string; | ||
LINE: string; | ||
GITHUB: string; | ||
KAKAO: string; | ||
LINKEDIN: string; | ||
TWITTER: string; | ||
WEIBO: string; | ||
WECHAT: string; | ||
EMAIL_PASSWORDLESS: string; | ||
SMS_PASSWORDLESS: string; | ||
readonly GOOGLE: "google"; | ||
readonly FACEBOOK: "facebook"; | ||
readonly REDDIT: "reddit"; | ||
readonly DISCORD: "discord"; | ||
readonly TWITCH: "twitch"; | ||
readonly APPLE: "apple"; | ||
readonly LINE: "line"; | ||
readonly GITHUB: "github"; | ||
readonly KAKAO: "kakao"; | ||
readonly LINKEDIN: "linkedin"; | ||
readonly TWITTER: "twitter"; | ||
readonly WEIBO: "weibo"; | ||
readonly WECHAT: "wechat"; | ||
readonly EMAIL_PASSWORDLESS: "email_passwordless"; | ||
readonly SMS_PASSWORDLESS: "sms_passwordless"; | ||
}; | ||
@@ -75,0 +75,0 @@ /** |
{ | ||
"name": "@toruslabs/base-controllers", | ||
"version": "5.2.5", | ||
"version": "5.2.6", | ||
"homepage": "https://github.com/torusresearch/controllers#readme", | ||
@@ -66,3 +66,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "b4ca58d3d56115563d15ffe691d919625eaaaae8" | ||
"gitHead": "4063508c644e18b27f3850b195ca521480fbde35" | ||
} |
@@ -62,2 +62,3 @@ import { createAsyncMiddleware, createScaffoldMiddleware, JRPCMiddleware, mergeMiddleware } from "@toruslabs/openlogin-jrpc"; | ||
showWindowBlockAlert, | ||
loginWithSessionId, | ||
} = providerHandlers; | ||
@@ -81,3 +82,4 @@ return mergeMiddleware([ | ||
createGenericJRPCMiddleware(COMMUNICATION_JRPC_METHODS.LOGIN_WITH_PRIVATE_KEY, loginWithPrivateKey) as JRPCMiddleware<unknown, unknown>, | ||
createGenericJRPCMiddleware(COMMUNICATION_JRPC_METHODS.LOGIN_WITH_SESSION_ID, loginWithSessionId) as JRPCMiddleware<unknown, unknown>, | ||
]); | ||
} |
@@ -76,2 +76,3 @@ import type { JRPCEngineEndCallback, JRPCEngineNextCallback, JRPCRequest, JRPCResponse } from "@toruslabs/openlogin-jrpc"; | ||
} | ||
export interface ICommunicationProviderHandlers { | ||
@@ -104,2 +105,3 @@ changeProvider: <T extends ProviderConfig & { windowId: string }>(req: JRPCRequest<T>) => Promise<boolean>; | ||
loginWithPrivateKey: (req: Ihandler<LoginWithPrivateKeyParams>) => Promise<{ success: boolean }>; | ||
loginWithSessionId: (req: Ihandler<[string, string]>) => Promise<{ success: boolean }>; | ||
showWalletConnect: (req: JRPCRequest<[]>, res: JRPCResponse<boolean>, next: JRPCEngineNextCallback, end: JRPCEngineEndCallback) => void; | ||
@@ -106,0 +108,0 @@ showCheckout: (req: JRPCRequest<[]>, res: JRPCResponse<boolean>, next: JRPCEngineNextCallback, end: JRPCEngineEndCallback) => void; |
@@ -58,2 +58,3 @@ export const FEATURES_PROVIDER_CHANGE_WINDOW = { height: 660, width: 375 }; | ||
SHOW_WALLET_UI: "show_wallet_ui", | ||
LOGIN_WITH_SESSION_ID: "login_with_session_id", | ||
}; | ||
@@ -60,0 +61,0 @@ |
@@ -88,3 +88,3 @@ import { OpenloginUserInfo } from "@toruslabs/openlogin-utils"; | ||
SMS_PASSWORDLESS: "sms_passwordless", | ||
}; | ||
} as const; | ||
/** | ||
@@ -91,0 +91,0 @@ * {@label loginProviderType} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
4015518
12164