createWebLocksRefreshLock — @gj-kit/expo-auth
A public function from @gj-kit/expo-auth/storage. The signature below is taken directly from the 0.1.1 release declaration.
Verified import example
Section titled “Verified import example”import { createWebLocksRefreshLock } from '@gj-kit/expo-auth/storage';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** * Cross-tab refresh serialization over the Web Locks API (H5). Where `navigator.locks` is * unavailable — including native, where this lock is therefore harmless to wire * unconditionally (§3.9) — `acquire` executes `run` directly, preserving the predecessor's * fallback. On lock-less browsers the tab race on single-use refresh tokens remains and the * H2 adoption path cleans up after it (§7-3) — the same exposure the predecessor had. */declare function createWebLocksRefreshLock(options: { /** Required. An origin-global name — using the same value as `keyPrefix` is recommended (§4.1-①). */ readonly name: string;}): RefreshLock;This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.
Release context
Section titled “Release context”- Package:
@gj-kit/expo-auth - Version:
0.1.1 - Public entry:
./storage - Source: GitHub