Skip to content

RefreshLock — @gj-kit/expo-auth

A public interface from @gj-kit/expo-auth. The signature below is taken directly from the 0.1.1 release declaration.

import { RefreshLock } from '@gj-kit/expo-auth';
/**
* Serializes the refresh critical section across tabs/instances (H5, design §3.2).
* The web default implementation is `createWebLocksRefreshLock` from `"./storage"` (§3.8),
* which falls back to direct execution where the Web Locks API is unavailable.
*/
interface RefreshLock {
acquire<T>(run: () => Promise<T>): Promise<T>;
}

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.

  • Package: @gj-kit/expo-auth
  • Version: 0.1.1
  • Public entry: .
  • Source: GitHub