Skip to content

v1.2.0

Choose a tag to compare

@simeng-li simeng-li released this 26 Jun 09:04
· 2 commits to master since this release
2a13db7

Summary

  • Add Expo SDK 56 support to @logto/rn and default the dev setup and sample app to it.
  • Fix web sign-in being blocked as a popup by Safari/Firefox, with a new opt-out flag.
  • Resolve reported dependency vulnerabilities via pnpm overrides.

Changes

Expo SDK 56 support (#65)

  • Widen peerDependencies in packages/rn/package.json so @logto/rn supports Expo SDK 52–56 — expo-crypto, expo-secure-store, and expo-web-browser are now allowed up to <57.
  • Bump dev dependencies to Expo SDK 56 defaults (react-native 0.85, @types/react 19.2).
  • Update the sample app in packages/rn-sample/package.json to Expo SDK 56 (react/react-dom 19.2, react-native 0.85, react-native-web 0.21).

Fix: web sign-in blocked as a popup on Safari/Firefox (#63)

  • On web, super.signIn awaited OIDC discovery, PKCE, and storage before opening the auth window — by then the click's user activation was gone and Safari/Firefox blocked it. The SDK now pre-opens a named blank window synchronously on click and reuses it by name for the auth session, which browsers treat as a navigation rather than a new popup. Native is unaffected. (packages/rn/src/client.ts)

  • New disableWebPopupWorkaround config option (default false) to opt out and open the window directly, e.g. if it conflicts with your own popup handling:

    <LogtoProvider config={{ endpoint, appId, disableWebPopupWorkaround: true }}>