Skip to content

Commit 4a117c2

Browse files
committed
feat: add changeset
1 parent 9e8118c commit 4a117c2

File tree

3 files changed

+47
-4
lines changed

3 files changed

+47
-4
lines changed

.changeset/early-students-tie.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
"@turnkey/eip-1193-provider": minor
3+
"@turnkey/sdk-browser": major
4+
"@turnkey/sdk-server": minor
5+
"@turnkey/sdk-react": minor
6+
---
7+
8+
## Major Package Updates
9+
10+
### @turnkey/sdk-browser
11+
12+
- create abstract `TurnkeyBaseClient` class which extends `TurnkeySDKClientBase`
13+
- `TurnkeyBrowserClient`, `TurnkeyIframeClient`, `TurnkeyPasskeyClient`, and `TurnkeyWalletClient` all extend `TurnkeyBaseClient`
14+
- TurnkeyBrowserClient
15+
- Session Management
16+
- refreshSession
17+
- loginWithBundle
18+
- loginWithPasskey
19+
- loginWithSession
20+
- TurnkeyPasskeyClient
21+
- Session Management
22+
- createPasskeySession
23+
24+
## Minor Package Updates
25+
26+
### @turnkey/sdk-react
27+
28+
- update `TurnkeyContext` to use new `.getSession()` method to check if there is an active session
29+
- `OTPVerification` component no longer receives `authIframeClient` or `onValidateSuccess` props
30+
31+
### @turnkey/sdk-server
32+
33+
- expose `sendCredential` server action
34+
- add `SessionType` enum
35+
- `READ_ONLY` & `READ_WRITE`
36+
37+
### @turnkey/eip-1193-provider
38+
39+
- add dependencies
40+
- `"@turnkey/api-key-stamper": "workspace:*"`
41+
- `"@turnkey/http": "workspace:*"`
42+
- `"@turnkey/sdk-browser": "workspace:*"`
43+
- specify TypeScript version ^5.1.5

packages/eip-1193-provider/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@turnkey/eip-1193-provider",
3-
"version": "3.1.5",
3+
"version": "3.2.0",
44
"main": "./dist/index.js",
55
"module": "./dist/index.mjs",
66
"exports": {

packages/sdk-react/src/contexts/TurnkeyContext.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const TurnkeyProvider: React.FC<TurnkeyProviderProps> = ({
5757
TurnkeyIframeClient | undefined
5858
>(undefined);
5959
const [client, setClient] = useState<TurnkeyBrowserClient | undefined>(
60-
undefined,
60+
undefined
6161
);
6262

6363
const { session } = useUserSession();
@@ -122,7 +122,7 @@ export const TurnkeyProvider: React.FC<TurnkeyProviderProps> = ({
122122
// create an instance of TurnkeyIframeClient
123123
const iframeClient = await turnkeyBrowserSDK.iframeClient({
124124
iframeContainer: document.getElementById(
125-
TurnkeyAuthIframeContainerId,
125+
TurnkeyAuthIframeContainerId
126126
),
127127
iframeUrl: config.iframeUrl || "https://auth.turnkey.com",
128128
iframeElementId: TurnkeyAuthIframeElementId,
@@ -138,7 +138,7 @@ export const TurnkeyProvider: React.FC<TurnkeyProviderProps> = ({
138138
*
139139
* This hook listens for changes in the `session` object. If the `session` contains an `authClient`,
140140
* it determines which client was used for initial authentication by checking the `authClient` key.
141-
* It then sets the corresponding client (either `iframeClient`, `passkeyClient`, or `walletClient`)
141+
* It then sets the corresponding client (either `authIframeClient`, `passkeyClient`, or `walletClient`)
142142
* as the active client using the `setClient` function.
143143
*
144144
* If the `session` changes, the `authClient` will be recomputed and the active client will be

0 commit comments

Comments
 (0)