Skip to content

Commit 553cf16

Browse files
authored
Merge branch 'main' into elef/sdk-1782-debug-failing-navigationtestts-integration-test
2 parents df7fea7 + 3c2b666 commit 553cf16

120 files changed

Lines changed: 2115 additions & 6900 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clerk/nextjs": patch
3+
---
4+
5+
Update dependency path-to-regexp to v6.2.2

‎.changeset/brave-bees-kick.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎.changeset/calm-wasps-accept.md‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
'@clerk/clerk-expo': minor
3+
---
4+
5+
Introduce `getClerkInstance()` to avoid importing the Clerk class from clerk-js manually.
6+
7+
This enables developers to create and access a Clerk instance in their application outside of React.
8+
```tsx
9+
import { ClerkProvider, getClerkInstance } from "@clerk/expo"
10+
11+
const clerkInstance = getClerkInstance({ publishableKey: 'xxxx' })
12+
13+
// Always pass the `publishableKey` to `ClerkProvider`
14+
<ClerkProvider publishableKey={'xxxx'}>
15+
...
16+
</ClerkProvider>
17+
18+
// Somewhere in your code, outside of React you can do
19+
const token = await clerkInstance.session?.getToken();
20+
fetch('http://example.com/', {headers: {Authorization: token })
21+
```
22+
```tsx
23+
import { ClerkProvider, getClerkInstance } from "@clerk/expo"
24+
25+
// Always pass the `publishableKey` to `ClerkProvider`
26+
<ClerkProvider publishableKey={'xxxx'}>
27+
...
28+
</ClerkProvider>
29+
30+
// If you sure that this code will run after the ClerkProvider has rendered then you can use `getClerkIntance` without options
31+
const token = await getClerkInstance().session?.getToken();
32+
fetch('http://example.com/', {headers: {Authorization: token })
33+
34+
```
35+
Attention: If `getClerkInstance` is called without a publishable key, and ClerkProvider has not rendered yet, an error will be thrown
36+

‎.changeset/chilly-garlics-reply.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
In some instances your application logo (shown at the top of the sign-in/sign-up form of the prebuilt components) might have been distorted in browsers like Firefox. By applying `object-fit: contain` to the image's CSS the logo now fills its bounding box without being distorted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎.changeset/eleven-toes-poke.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
Sms phone code verification lists available phone numbers on cancel.

‎.changeset/empty-deers-notice.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clerk/shared": patch
3+
---
4+
5+
Update `js-cookie` from `3.0.1` to `3.0.5`. Update `swr` from `2.2.0` to `2.2.5`.

‎.changeset/gentle-brooms-worry.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎.changeset/giant-cougars-grab.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎.changeset/giant-poems-drum.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@clerk/clerk-expo': patch
3+
---
4+
5+
Support `EXPO_PUBLIC_` prefixes for env variables.
6+
```dotenv
7+
## .env
8+
9+
EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY=xxxxxxxx
10+
```

0 commit comments

Comments
 (0)