Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
eedabc7
feat(clerk-js,shared): add experimental trusted device resources
mikepitre Sep 27, 2026
06409ce
feat(expo-biometrics): add biometric credential native module
mikepitre Sep 27, 2026
193f277
chore(expo-biometrics): point iOS storage comment at the clerk-ios co…
mikepitre Sep 28, 2026
8ae86de
fix(expo-biometrics): report missing secure key storage
mikepitre Sep 28, 2026
b04b97d
feat(expo-biometrics): add Android support
mikepitre Sep 27, 2026
406e03d
fix(expo-biometrics): report missing secure key storage on Android
mikepitre Sep 28, 2026
b3fe64c
feat(expo): move biometric credentials to @clerk/expo-biometrics
mikepitre Sep 27, 2026
cffd179
fix(expo): keep API error codes on biometric credential errors
mikepitre Sep 27, 2026
8bc206c
fix(expo): treat missing secure key storage as unavailable
mikepitre Sep 28, 2026
76e4e5b
chore(expo): port biometrics to main and fix test typing
mikepitre Sep 29, 2026
3d8a2eb
chore(expo-biometrics): raise the clerk.browser.js size limit and cla…
mikepitre Sep 30, 2026
507c4fb
refactor(expo-native): move native SDK code from @clerk/expo into pac…
mikepitre Sep 27, 2026
c488efa
feat(expo-native): scaffold @clerk/expo-native package
mikepitre Sep 27, 2026
a0c461c
feat(expo): re-export native components from @clerk/expo-native and d…
mikepitre Sep 27, 2026
99a6290
chore(expo-native): wire the package into CI, the native fixture, and…
mikepitre Sep 27, 2026
b6bc9c2
fix(expo): clarify config plugin warnings for @clerk/expo-native options
mikepitre Sep 27, 2026
872e66b
refactor(expo-native): drop the dependency on @clerk/expo
mikepitre Sep 27, 2026
007540a
chore(expo): leave biometric credentials out of the native split chan…
mikepitre Sep 28, 2026
a7f449e
refactor(expo-native-components): rename @clerk/expo-native to @clerk…
mikepitre Sep 28, 2026
e1a16c3
fix(expo): point biometric reverification at @clerk/expo-native-compo…
mikepitre Sep 29, 2026
7ef069b
docs(expo-biometrics): describe the package as the install for useBio…
mikepitre Sep 30, 2026
fa996d4
feat(expo): run biometric reverification in JS
mikepitre Sep 30, 2026
ab01e9d
chore(expo): correct useBiometricCredentials requirements and raise t…
mikepitre Sep 30, 2026
0c71b3d
Merge branch 'mike/expo-biometrics-package' of github.com:clerkinc/ja…
mikepitre Sep 30, 2026
6a7b7fb
chore(expo-biometrics): point storage comments at clerk-android's con…
mikepitre Sep 30, 2026
0d8e5b0
fix(expo-biometrics): serialize Android record saves and deletes
mikepitre Sep 30, 2026
a662774
Merge branch 'main' into mike/expo-biometrics-package
wobsoriano Sep 30, 2026
628192a
Merge branch 'mike/expo-biometrics-package' of github.com:clerkinc/ja…
mikepitre Sep 30, 2026
690bef2
chore(expo): drop the Android re-enrollment note now that clerk-andro…
mikepitre Sep 30, 2026
119ba4e
chore(expo-biometrics): exclude native tests from the published package
wobsoriano Oct 1, 2026
adecbb5
refactor(expo,expo-biometrics): remove unreachable compatibility shims
wobsoriano Oct 1, 2026
413705c
refactor(expo): dedupe local credential cleanup in sign-in and reverify
wobsoriano Oct 1, 2026
32f6c80
test(expo): drop native sync mocks the biometric hook no longer uses
wobsoriano Oct 1, 2026
f854344
chore(clerk-js): raise the clerk.legacy.browser.js size limit
wobsoriano Oct 1, 2026
c720537
chore(repo): simplify biometric credential changesets
wobsoriano Oct 1, 2026
d9f99e6
fix(expo): keep biometric credential error codes consistent
wobsoriano Oct 1, 2026
f253936
docs(expo): describe the @clerk/expo-biometrics requirement on useBio…
wobsoriano Oct 1, 2026
4714f8e
test(e2e): add a biometric availability smoke flow
wobsoriano Oct 1, 2026
4fe93d7
refactor(clerk-js): align native settings parsing with sibling resources
wobsoriano Oct 1, 2026
89da67e
Merge branch 'main' into mike/expo-biometrics-package
wobsoriano Oct 1, 2026
6ec83d4
fix(expo,expo-biometrics): check biometric challenges before promptin…
mikepitre Oct 1, 2026
4ba69f8
feat(expo): export useBiometricCredentials from @clerk/expo/biometrics
wobsoriano Oct 1, 2026
b609ad1
fix(expo-biometrics): settle Android sign() when the prompt cannot show
swolfand Oct 1, 2026
af58d9f
Merge branch 'main' into mike/expo-biometrics-package
mikepitre Oct 1, 2026
d7094a9
ci(repo): copy expo-biometrics Android tests into the packed fixture …
mikepitre Oct 1, 2026
d82987a
Merge branch 'main' into mike/expo-biometrics-package
mikepitre Oct 1, 2026
b078daa
Merge commit 'd82987a040' into mike/expo-native-package
mikepitre Oct 1, 2026
fc5c343
Merge main before the #9989 squash into mike/expo-native-package
mikepitre Oct 1, 2026
f2aed86
Merge main into mike/expo-native-package
mikepitre Oct 1, 2026
7d58a73
chore(expo): note that Android enrollments need the native SDK to mig…
mikepitre Oct 1, 2026
b9138eb
fix(repo): use the @clerk/expo-native-components plugin in the native…
mikepitre Oct 1, 2026
e6d2f6f
Merge branch 'main' into mike/expo-native-package
mikepitre Oct 2, 2026
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
27 changes: 27 additions & 0 deletions .changeset/expo-native-components-moved.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
'@clerk/expo': minor
---

The native components (`AuthView`, `UserButton`, `UserProfileView`) and native client sync have moved to the new `@clerk/expo-native-components` package. Apps that don't install it no longer include the Clerk iOS and Android SDKs and no longer require iOS 17.

If you use the native components, install the new package:

```sh
npx expo install @clerk/expo-native-components
```

add its config plugin alongside `@clerk/expo` in your app config:

```json
{
"expo": {
"plugins": ["@clerk/expo", "@clerk/expo-native-components"]
}
}
```

then rebuild your native app. `@clerk/expo/native` keeps working and re-exports the components from `@clerk/expo-native-components`, which you can also import from directly. Without `@clerk/expo-native-components` installed, rendering a component from `@clerk/expo/native` throws an error explaining how to install it.

The `keychainService` and `theme` config plugin options now belong to the `@clerk/expo-native-components` plugin. The `@clerk/expo` plugin forwards them when `@clerk/expo-native-components` is installed, and warns otherwise.

On Android, the Clerk Android SDK moves biometric credentials enrolled with earlier versions of `@clerk/expo` to the storage that `@clerk/expo-biometrics` reads. Apps without `@clerk/expo-native-components` no longer include that SDK, so users whose credentials weren't moved by an earlier release need to enroll again.
5 changes: 5 additions & 0 deletions .changeset/introduce-expo-native.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/expo-native-components': minor
---

Add `@clerk/expo-native-components`, the optional companion package to `@clerk/expo` that contains Clerk's prebuilt native components (`AuthView`, `UserButton`, `UserProfileView`) and the native module built on the Clerk iOS and Android SDKs. It includes a config plugin that accepts the `keychainService` and `theme` options.
53 changes: 27 additions & 26 deletions .claude/skills/clerk-monorepo/references/package-map.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ expo:
- changed-files:
- any-glob-to-any-file: packages/expo/**

expo-native-components:
- changed-files:
- any-glob-to-any-file: packages/expo-native-components/**

express:
- changed-files:
- any-glob-to-any-file: packages/express/**
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/api-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
- 'packages/clerk-js/**'
- 'packages/expo/**'
- 'packages/expo-google-signin/**'
- 'packages/expo-native-components/**'
- 'packages/expo-passkeys/**'
- 'packages/express/**'
- 'packages/fastify/**'
Expand Down Expand Up @@ -56,6 +57,7 @@ env:
--filter=@clerk/clerk-js
--filter=@clerk/expo
--filter=@clerk/expo-google-signin
--filter=@clerk/expo-native-components
--filter=@clerk/expo-passkeys
--filter=@clerk/express
--filter=@clerk/fastify
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/expo-native-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- 'packages/expo/**'
- 'packages/expo-biometrics/**'
- 'packages/expo-google-signin/**'
- 'packages/expo-native-components/**'
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -87,6 +88,7 @@ jobs:
packages/expo \
packages/expo-biometrics \
packages/expo-google-signin \
packages/expo-native-components \
packages/react \
packages/shared \
"$FIXTURE_DIR" |
Expand Down Expand Up @@ -127,6 +129,7 @@ jobs:
mkdir -p "$SDK_PACK_DIR"
pnpm --filter @clerk/expo pack --pack-destination "$SDK_PACK_DIR"
pnpm --filter @clerk/expo-google-signin pack --pack-destination "$SDK_PACK_DIR"
pnpm --filter @clerk/expo-native-components pack --pack-destination "$SDK_PACK_DIR"
pnpm --filter @clerk/expo-biometrics pack --pack-destination "$SDK_PACK_DIR"

- name: Install fixture dependencies
Expand All @@ -138,11 +141,12 @@ jobs:
run: |
cp "package.sdk-$EXPO_SDK.json" package.json
pnpm install --no-frozen-lockfile
# [0-9] keeps this glob off the clerk-expo-google-signin tarball.
# [0-9] keeps this glob off the other clerk-expo-* tarballs.
SDK_TARBALL="$(ls "$SDK_PACK_DIR"/clerk-expo-[0-9]*.tgz)"
GOOGLE_SIGNIN_TARBALL="$(ls "$SDK_PACK_DIR"/clerk-expo-google-signin-*.tgz)"
NATIVE_TARBALL="$(ls "$SDK_PACK_DIR"/clerk-expo-native-components-*.tgz)"
BIOMETRICS_TARBALL="$(ls "$SDK_PACK_DIR"/clerk-expo-biometrics-*.tgz)"
pnpm add "$SDK_TARBALL" "$GOOGLE_SIGNIN_TARBALL" "$BIOMETRICS_TARBALL" -w
pnpm add "$SDK_TARBALL" "$GOOGLE_SIGNIN_TARBALL" "$NATIVE_TARBALL" "$BIOMETRICS_TARBALL" -w
# expo-dev-client makes even release builds boot into the dev
# launcher (unreachable Metro in CI), which stalls every Maestro
# flow on a blank screen. Skip it on e2e jobs only.
Expand Down
2 changes: 1 addition & 1 deletion integration/templates/expo-native/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"android": {
"package": "com.clerk.exponativebuildfixture"
},
"plugins": ["expo-secure-store", "@clerk/expo", "expo-web-browser"]
"plugins": ["expo-secure-store", "@clerk/expo", "@clerk/expo-native-components", "expo-web-browser"]
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"changeset": "changeset",
"changeset:empty": "pnpm changeset --empty",
"clean": "turbo run clean",
"dev": "TURBO_UI=0 FORCE_COLOR=1 turbo dev --filter=@clerk/* --filter=!@clerk/expo --filter=!@clerk/tanstack-react-start --filter=!@clerk/chrome-extension",
"dev": "TURBO_UI=0 FORCE_COLOR=1 turbo dev --filter=@clerk/* --filter=!@clerk/expo --filter=!@clerk/expo-native-components --filter=!@clerk/tanstack-react-start --filter=!@clerk/chrome-extension",
"dev:fe-libs": "TURBO_UI=0 FORCE_COLOR=1 turbo dev --filter=@clerk/clerk-js --filter=@clerk/ui --filter=@clerk/shared",
"dev:js": "TURBO_UI=0 FORCE_COLOR=1 turbo dev:current --filter=@clerk/clerk-js",
"dev:sandbox": "TURBO_UI=0 FORCE_COLOR=1 turbo dev:sandbox:serve",
Expand Down
File renamed without changes.
21 changes: 21 additions & 0 deletions packages/expo-native-components/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Clerk, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
107 changes: 107 additions & 0 deletions packages/expo-native-components/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<p align="center">
<a href="https://clerk.com?utm_source=github&utm_medium=clerk_expo_native_components" target="_blank" rel="noopener noreferrer">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://images.clerk.com/static/logo-dark-mode-400x400.png">
<img src="https://images.clerk.com/static/logo-light-mode-400x400.png" height="64">
</picture>
</a>
<br />
<h1 align="center">@clerk/expo-native-components</h1>
</p>

<div align="center">

[![Chat on Discord](https://img.shields.io/discord/856971667393609759.svg?logo=discord)](https://clerk.com/discord)
[![Clerk documentation](https://img.shields.io/badge/documentation-clerk-green.svg)](https://clerk.com/docs?utm_source=github&utm_medium=clerk_expo_native_components)
[![Follow on X](https://img.shields.io/twitter/follow/clerk?style=social)](https://x.com/intent/follow?screen_name=clerk)

[Changelog](https://github.com/clerk/javascript/blob/main/packages/expo-native-components/CHANGELOG.md)
·
[Report a Bug](https://github.com/clerk/javascript/issues/new?assignees=&labels=needs-triage&projects=&template=BUG_REPORT.yml)
·
[Request a Feature](https://feedback.clerk.com/roadmap)
·
[Get help](https://clerk.com/contact/support?utm_source=github&utm_medium=clerk_expo_native_components)

</div>

## Getting Started

`@clerk/expo-native-components` adds Clerk's prebuilt native components to an Expo app that uses [`@clerk/expo`](https://github.com/clerk/javascript/tree/main/packages/expo). It contains the native modules built on the Clerk iOS and Android SDKs:

- **iOS**: [clerk-ios](https://github.com/clerk/clerk-ios) (SwiftUI)
- **Android**: [clerk-android](https://github.com/clerk/clerk-android) (Jetpack Compose)

Install it only if you use `AuthView`, `UserProfileView`, `UserButton`, or biometric credentials. Apps that only use `@clerk/expo` do not include the Clerk native SDKs.

### Prerequisites

- `@clerk/expo`
- Expo 54 or later, with a [development build](https://docs.expo.dev/develop/development-builds/introduction/) (Expo Go is not supported)
- iOS 17 or later

### Installation

```sh
npx expo install @clerk/expo @clerk/expo-native-components
```

Add the config plugin alongside `@clerk/expo` in your app config, then rebuild your native app:

```json
{
"expo": {
"plugins": ["@clerk/expo", "@clerk/expo-native-components"]
}
}
```

The plugin accepts the following options:

- `keychainService`: keychain service identifier to share the session with app extensions.
- `theme`: path to a JSON file with `colors`, `darkColors`, and `design` keys that styles the native components.

## Usage

```tsx
import { useAuth } from '@clerk/expo';
import { AuthView } from '@clerk/expo-native-components';

export default function SignInScreen() {
const { isSignedIn } = useAuth();

if (isSignedIn) {
return null;
}

return <AuthView />;
}
```

For further information, guides, and examples visit the [Expo reference documentation](https://clerk.com/docs/references/expo/overview?utm_source=github&utm_medium=clerk_expo_native_components).

## Support

For help, visit our [support page](https://clerk.com/contact/support?utm_source=github&utm_medium=clerk_expo_native_components).

## Community

Join our [Discord community](https://clerk.com/discord) to connect with other developers.

## Contributing

We're open to all community contributions! If you'd like to contribute in any way, please read [our contribution guidelines](https://github.com/clerk/javascript/blob/main/docs/CONTRIBUTING.md) and [code of conduct](https://github.com/clerk/javascript/blob/main/docs/CODE_OF_CONDUCT.md).

## Security

`@clerk/expo-native-components` follows good practices of security, but 100% security cannot be assured.

`@clerk/expo-native-components` is provided **"as is"** without any **warranty**. Use at your own risk.

_For more information and to report security issues, please refer to our [security documentation](https://github.com/clerk/javascript/blob/main/docs/SECURITY.md)._

## License

This project is licensed under the **MIT license**.

See [LICENSE](https://github.com/clerk/javascript/blob/main/packages/expo-native-components/LICENSE) for more information.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ applyKotlinExpoModulesCorePlugin()
group = 'com.clerk.expo'
version = '1.0.0'

def clerkExpoPackageJson = new JsonSlurper().parse(new File(projectDir, "../package.json"))
def clerkExpoVersion = clerkExpoPackageJson.version.toString()
// Set by the @clerk/expo-native-components config plugin to the installed @clerk/expo version.
def clerkExpoVersion = rootProject.findProperty("clerkExpo.hostSdkVersion")?.toString() ?:
new JsonSlurper().parse(new File(projectDir, "../package.json")).version.toString()

// Dependency versions - centralized for easier updates
// See: https://docs.gradle.org/current/userguide/version_catalogs.html for app-level version catalogs
Expand Down Expand Up @@ -97,7 +98,7 @@ try {
}
} catch (Exception ignored) {
// Future Gradle versions with Isolated Projects may block cross-project configuration.
// In that case, users should add '@clerk/expo' to their app.json plugins array instead,
// In that case, users should add '@clerk/expo-native-components' to their app.json plugins array instead,
// which applies the flag via the config plugin's withClerkAndroid.
}

Expand Down
5 changes: 5 additions & 0 deletions packages/expo-native-components/app.plugin.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import type { ConfigPlugin } from '@expo/config-plugins';

declare const withClerkExpoNativeComponents: ConfigPlugin<{ keychainService?: string; theme?: string } | void>;

export = withClerkExpoNativeComponents;
Loading
Loading