expo-passkey
Version:
Passkey authentication for Expo apps with Better Auth integration
27 lines • 892 B
JavaScript
/**
* @file Module loader for Expo dependencies
* @module expo-passkey/client/utils/modules
*/
import { Platform } from "react-native";
import * as Application from "expo-application";
import * as Device from "expo-device";
import * as LocalAuthentication from "expo-local-authentication";
import * as SecureStore from "expo-secure-store";
import * as Crypto from "expo-crypto";
// Return all modules bundled together
export function loadExpoModules() {
// Check if running in a server environment
if (typeof window === "undefined" && typeof process !== "undefined") {
throw new Error("Expo modules cannot be loaded in a server environment");
}
// Return the statically imported modules
return {
Platform,
Application,
Device,
LocalAuthentication,
SecureStore,
Crypto,
};
}
//# sourceMappingURL=modules.js.map