Genesis

Packages

@marktiderman/genesis-supabase

0.18.0Primitive · Data

Supabase for Genesis apps on web and React Native: a client with PKCE and safe defaults, Keychain session storage that survives interrupted writes, refresh only while the app is in front, native Sign in with Apple and Google, OAuth redirects, in-app account deletion, per-tenant feature switches (tenant_features), a background-job queue with schedules (genesis_jobs) on one outbox engine (/runner, shared with notifications and forms), the feature registry in the database for the feature gate (features, entitlements, flag values, feature_on), a native-to-web sign-in handoff (continue on the web, already signed in: web-handoff), and a result helper. Part of the Genesis framework.

Supabase for Genesis apps on web and React Native.

const session = keychainStorage(SecureStore); await wipeSessionOnReinstall({ session, sessionKey: "sb-<project-ref>-auth-token", installMarker: AsyncStorage, });

pnpm add @marktiderman/genesis-supabase

READMEChangelognpm

@marktiderman/genesis-supabase

Other exports (31)

accountBlock · APPLE_REVOKE_FUNCTION · clearGenesisSetting · createAuthFormClient · createGenesisSupabase · deleteMyAccount · eventsBlock · featureGateState · featureMirrorBlock · fetchAuthSettings · genesisSettingHistory · jobsBlock · must · readSettingsLayers · requestAppleRevocation · resolveAppSettings · setGenesisSetting · setTenantFeature · settingsBlock · settingsHostBlock · storeAppleToken · SUPABASE_OAUTH_PROVIDERS · SupabaseQueryError · syncFeatureRegistry · tenantFeatureHistory · tenantFeatures · tenantFeaturesBlock · tenantFeatureSettings · versionedWritesBlock · watchAppSettings · writeAppManifest

And 37 types.

@marktiderman/genesis-supabase/native

Other exports (14)

assertPkceCrypto · completeOAuthRedirect · formatFullName · GenesisAuthError · hasPkceCrypto · installWebCrypto · isDigestOnlyPolyfill · keychainStorage · redirectParams · refreshWhileActive · signInWithApple · signInWithGoogle · splitUtf8 · wipeSessionOnReinstall

And 16 types.

@marktiderman/genesis-supabase/blocks

Other exports (9)

accountBlock · eventsBlock · featureMirrorBlock · jobsBlock · settingsBlock · settingsHostBlock · tenantFeaturesBlock · versionedWritesBlock · webHandoffBlock

@marktiderman/genesis-supabase/jobs

Other exports (8)

createJobsHandler · defaultBackoff · enqueueJob · JobsError · PermanentJobError · runJobs · signJobRequest · verifyJobRequest

And 10 types.

@marktiderman/genesis-supabase/events

Other exports (2)

createEventsSink · createEventTracker

And 6 types.

@marktiderman/genesis-supabase/runner

Other exports (7)

createRunner · DEFAULT_BATCH_SIZE · DEFAULT_MAX_ATTEMPTS · DEFAULT_MAX_DEFERRALS · defaultBackoff · failureOf · jobOutcome

And 10 types.

@marktiderman/genesis-supabase/web-handoff

Other exports (4)

appRelativePath · completeWebHandoff · forgetWebHandoffFragment · takeWebHandoffFragment

And 5 types.

@marktiderman/genesis-supabase/web-handoff/server

Other exports (10)

appRelativePath · bindWebHandoffSession · claimWebHandoff · continueWebHandoff · createWebHandoff · discardWebHandoff · handoffDigest · mintWebHandoff · sessionIdOf · signOutWebHandoffs

And 7 types.

@marktiderman/genesis-supabase/settings/server

Other exports (2)

createSettingsHandler · upgradeDistance

And 2 types.