packages/expo-passkeys/README.md
</picture>
Changelog ยท Report a Bug ยท Request a Feature ยท Get help
</div>>=20.9.0 or laterimport { ClerkProvider } from '@clerk/expo';
import { passkeys } from '@clerk/expo/passkeys';
<ClerkProvider __experimental_passkeys={passkeys}></ClerkProvider>;
const { user } = useUser();
const handleCreatePasskey = async () => {
if (!user) return;
try {
return await user.createPasskey();
} catch (e: any) {
// handle error
}
};
const { signIn, setActive } = useSignIn();
const handlePasskeySignIn = async () => {
try {
const signInResponse = await signIn.authenticateWithPasskey();
await setActive({ session: signInResponse.createdSessionId });
} catch (err: any) {
// handle error
}
};
You can get in touch with us in any of the following ways:
We're open to all community contributions! If you'd like to contribute in any way, please read our contribution guidelines and code of conduct.
@clerk/expo-passkeys follows good practices of security, but 100% security cannot be assured.
@clerk/expo-passkeys 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.
This project is licensed under the MIT license.
See LICENSE for more information.