Skip to content

Releases

v0.14.3

Choose a tag to compare

@JoaoPauloCMarra JoaoPauloCMarra released this 18 Nov 17:13
1356333

Fixes three web session bugs and documents how token refresh works on web.

Breaking changes

  • None.

Changes

  • Web: silentRestore() after a login no longer drops the in-memory tokens when token persistence is off.
  • Web: a session is restored as one whole session, so tokens from one tab are never paired with the expiry or scopes of another.
  • Web: after browser storage rejects a write, the newer in-memory value is read first.
  • Web: a duplicate login() rejected with operation_in_progress no longer emits login_failed.
  • Docs: a Google refreshToken() on web opens a popup and needs a user gesture; silentRestore() never opens UI.
  • Tested on Expo SDK 58.0.26, React Native 0.88.1 and React 19.3.0. Peer ranges are unchanged.

Full notes: CHANGELOG

v0.14.2

Choose a tag to compare

@JoaoPauloCMarra JoaoPauloCMarra released this 10 Nov 21:40
20fe7b2

Moves the development and example baseline to the latest Expo SDK 58, React Native and Nitro patch releases.

Breaking changes

  • None.

Changes

  • Tested on Expo SDK 58.0.23, React Native 0.88.1 and react-native-nitro-modules 0.37.2.
  • Nitro bindings are regenerated with Nitrogen 0.37.2. The generated iOS Swift drops an unused recycling check for the auth adapter and uses the new C++ part check.
  • Peer ranges are unchanged.

Full notes: CHANGELOG

v0.14.1

Choose a tag to compare

@JoaoPauloCMarra JoaoPauloCMarra released this 19 Oct 21:08
6378b6a

Fixes web refresh-token loss after silent restore, web storage and insecure-context failures, Microsoft per-login tenants, and Apple session handoff on iOS.

Breaking changes

  • None.

Changes

  • Web silentRestore() keeps the in-memory Microsoft refresh token, so later refreshes work.
  • Web logins survive browser-storage write failures and report configuration_error in insecure contexts.
  • Web scope requests and Google refresh reject a different account with invalid_state.
  • Microsoft refresh and scope upgrades keep the tenant used at login on web, Android and iOS.
  • iOS Apple sign-in clears older Google and Microsoft sessions; the config plugin removes the Apple entitlement when appleSignIn is false.
  • Native refresh_failed events include the provider; user.scopes is unset after revoking all scopes.
  • The Microsoft social button supports appearance and shape.
  • Tested with Expo SDK 58 (React Native 0.88.0).

Full notes: CHANGELOG

v0.14.0

Choose a tag to compare

@JoaoPauloCMarra JoaoPauloCMarra released this 13 Oct 19:35
fa27106

This release adds AuthService.createNonce(), gives clearer error codes, and makes the Expo plugin and Google and Microsoft sessions more reliable.

Breaking changes

  • The Expo config plugin now rejects unknown or mistyped options at expo prebuild. Remove or correct the option named in the error.
  • Many failures now use specific AuthError.code values, not unknown or network_error. Switch on the new codes. Android Google refresh now reports not_signed_in; send those users through login("google").
  • Web: default login("microsoft") now requests offline_access, and a login with no refresh token drops the old one.

Changes

  • New AuthService.createNonce() returns a raw and SHA-256 hex nonce pair on iOS, Android and web.
  • Android: Credential Manager Google refresh is non-interactive and needs a foreground Activity. If UI is needed, it rejects with refresh_failed and keeps the session.
  • Android: Google status codes map the same way for login, requestScopes() and legacy refresh.
  • iOS: signing in with Google or Microsoft clears the other provider's session. Apple sign-in clears neither.
  • iOS: requestScopes() with granted scopes resolves with the current user. An expired Google refresh token reports interaction_required.
  • Web fixes: no "undefined Doe" Apple names, logout clears the Microsoft refresh token, and code exchange maps network failures to network_error.
  • Expo plugin: a later expo prebuild removes only the Info.plist keys and URL schemes the plugin wrote.
  • GoogleSignIn now requires ~> 9.2, and Android play-services-auth is 21.6.0.

Full notes: CHANGELOG

v0.13.2

Choose a tag to compare

@JoaoPauloCMarra JoaoPauloCMarra released this 03 Oct 21:44
b003889

Breaking changes

None.

Fixed

  • Web: a refresh from an earlier session cannot overwrite a new login.
    Refresh rejects with operation_in_progress while an interactive session
    operation is pending, and logout still cancels a login started in the same turn.
  • Web: a refresh cancelled by login, requestScopes, or logout rejects without
    emitting a refresh_failed auth event, matching iOS and Android.
  • iOS and web: Apple sign-in respects an explicit empty scopes list instead
    of requesting name and email. Omitted scopes retain the existing defaults.
  • Clarify that web provider sign-in uses Expo configuration through
    expo-constants; the package has no separate plain-browser configuration API.

v0.13.1

Choose a tag to compare

@JoaoPauloCMarra JoaoPauloCMarra released this 01 Oct 22:40
2ea188f

Breaking changes

None.

Fixed

  • Android: a Google ID token whose exp claim is too large to represent in milliseconds no longer produces a wrapped, incorrect expirationTime. The expiry is reported as absent.
  • Android: a Microsoft token response with an out-of-range expires_in no longer produces a wrapped, incorrect expirationTime. The expiry is reported as absent, as it already was for zero or negative values.
  • iOS and Android: JWT payload decoding no longer relies on signed-integer shift behavior, and the native decoder rejects payloads larger than INT_MAX bytes instead of returning a truncated length. Real tokens decode as before.
  • iOS: an ID token whose payload is not valid UTF-8, or contains a NUL byte, yields no claims, as on Android. A Microsoft or nonce-bound sign-in with such a token fails with invalid_nonce instead of using altered claim text.
  • iOS: Microsoft sign-in falls back to the email claim when preferred_username is present but empty, as on Android.
  • iOS: a Microsoft sign-in is reported as cancelled only when the web authentication session reports a user cancel. An unrelated error with the same numeric code is reported as network_error or unknown.
  • iOS: when Microsoft returns an error without an error_description, the error detail is the provider error code, as on Android.
  • Android: null, array, and object ID-token claims are ignored instead of being turned into text, so a null email or name is no longer reported as the string "null".
  • The error contract documents that a native error detail is cut at a NUL byte, and how iOS and Android differ when a provider gives no usable token expiry.
  • The README explains that compileSdk 35 and Android Gradle Plugin 8.6 are minimums set by AndroidX Credentials 1.6.0, and that the library's compileSdk 36, targetSdk 36, and minSdk 24 defaults apply only when the app sets none.

v0.13.0

Choose a tag to compare

@JoaoPauloCMarra JoaoPauloCMarra released this 30 Sep 14:35
99301ba

Breaking changes

  • react-native-svg is now an optional peer dependency (>=15.8.0) instead of a pinned 15.15.5 dependency, and SVG button artwork moved to a new subpath. react-native-nitro-auth/official-buttons renders PNG artwork only and accepts only renderMode="image"; it no longer loads react-native-svg or the inlined SVG artwork.

    Migration: if you render renderMode="svg", install react-native-svg (bunx expo install react-native-svg) and import OfficialSocialButton from react-native-nitro-auth/official-buttons/svg. That export defaults to renderMode="svg" and also accepts "image". Image-mode buttons need no change.

  • expo-build-properties is no longer a dependency. The config plugin now writes the Google Sign-In modular-header pods into apple.extraPods through withPodfileProperties and leaves every other Podfile property unchanged.

    Migration: if your app.config lists expo-build-properties in plugins, add it to your own dependencies with bunx expo install expo-build-properties. If you also set ios.extraPods there, list react-native-nitro-auth before expo-build-properties in plugins, or add AppCheckCore, GoogleUtilities, and RecaptchaInterop with modular_headers: true to that list.

  • The react-native peer range is now >=0.77.0, the minimum that react-native-nitro-modules 0.37 builds on (its Android module does not compile against React Native 0.76). expo >=53.0.0 is an optional peer used only by the config plugin.

    Migration: upgrade React Native 0.75/0.76 apps to 0.77 or later (Expo SDK 53 or later) before installing this release.

  • On iOS and Android, refreshToken() and a near-expiry getAccessToken() reject with operation_in_progress while a login(), requestScopes(), silentRestore(), or revokeAccess() is pending. Before this release, the refresh cancelled that operation.

    Migration: if you call refreshToken() or getAccessToken() during sign-in, account switching, scope consent, startup restore, or access revocation, catch operation_in_progress and retry after the pending operation settles.

  • The Android library manifest no longer gives MicrosoftAuthActivity a scheme-only msauth intent filter, so apps no longer claim every msauth:// URL on the device.

    Migration: Expo apps need no change; the plugin registers msauth://${applicationId}/<microsoftClientId> with the manifest placeholder, so applicationIdSuffix and product flavors get a matching host. Bare Android apps that use Microsoft login must add that intent filter to com.auth.MicrosoftAuthActivity in their manifest, as shown in the README's "Microsoft redirect URIs" section.

  • On web, provider errors now map through the shared OAuth table used by iOS and Android. invalid_grant or invalid_token during login maps to token_error (it was refresh_failed), and provider messages that only contain an error code as a substring map to unknown.

    Migration: callers that branch on refresh_failed after a web login failure should branch on token_error.

Added

  • react-native-nitro-auth/official-buttons/svg subpath with the SVG OfficialSocialButton.
  • README sections for Microsoft redirect URIs (Android msauth://<applicationId>/<microsoftClientId>, iOS msauth.<bundleIdentifier>://auth) and React Native / Expo compatibility.

Changed

  • The iOS podspec uses React Native's min_ios_version_supported instead of iOS 16.4, so default React Native 0.77–0.86 and Expo SDK 53–55 apps (iOS 15.1) can install the pod. Its git source uses the v-prefixed release tag.
  • Android dependencies no longer require compileSdk 36 and Android Gradle Plugin 8.9.1: androidx.activity:activity-ktx is 1.10.1 and androidx.browser:browser is 1.8.0. androidx.credentials 1.6.0 and googleid 1.2.0 are unchanged. The Android requirements are compileSdk 35, Android Gradle Plugin 8.6, and Kotlin 2.0 or later. The package no longer pins kotlin-stdlib; the host Kotlin version applies.
  • Android Credential Manager Google sessions report the ID token's hd claim as hostedDomain, falling back to the requested value.
  • The config plugin loads expo/config-plugins instead of @expo/config-plugins.

Fixed

  • A native token refresh no longer cancels an in-flight login, scope request, or session restore.
  • iOS forceAccountPicker and useSheet sign out of the local Google session instead of revoking the app's Google grant.
  • iOS returns undefined instead of "" for absent user fields and tokens, matching Android. An iOS refresh no longer overwrites stored tokens with empty strings.
  • iOS clears the in-memory Microsoft refresh token after a 4xx refresh response, like Android, so later silentRestore() calls resolve without a session instead of failing with refresh_failed. On both platforms, 408 and 429 responses keep the refresh token.
  • The iOS Microsoft callback checks state before it reads provider errors.
  • loginAndGetUser() returns the same scopes value as currentUser when no scopes were granted.
  • Web: a login cancelled by logout() no longer clears the guard of a login started in the same tick, and logout() and dispose() close the provider popup and stop its timers.
  • Web: Apple JS SDK rejections such as { error: "popup_closed_by_user" } and { error: "user_cancelled_authorize" } map to cancelled instead of unknown.
  • useAuth().loading stays true until every hook operation settles; a rejected duplicate call no longer clears it while the first call runs.
  • The web entry binds useAuth to the web service, so bundlers that ignore .web file resolution no longer load the Nitro service on web.
  • The config plugin rewrites the Microsoft Android activity filter on every prebuild, removes it and the Microsoft and Google string resources when their options are removed, no longer calls the missing AndroidConfig.Package.getPackageName, and does not write an msauth.undefined URL scheme when ios.bundleIdentifier is missing.
  • The Android Apple nonce format (64-character lowercase SHA-256 hex) is documented in the README and the AppleAndroidLoginOptions type.
  • The shipped Google Sans OFL notice names the font's own copyright holder.
  • SECURITY.md directs reports to GitHub private vulnerability reporting instead of public issues.
  • Documentation no longer describes a custom web storage adapter. It was never reachable from the public API; nitroAuthPersistTokensOnWeb defaults to false.

v0.11.3

Choose a tag to compare

@JoaoPauloCMarra JoaoPauloCMarra released this 27 Sep 22:35

Breaking changes

  • None.

Fixed

  • Web cache restoration removes stored credential and profile fields when their persistence policies are disabled. Failed storage cleanup leaves the in-memory session sanitized and emits credential-safe diagnostics.
  • Restricted browser storage getters now fall back to memory instead of crashing initialization.
  • Apple web SDK loading now times out after 15 seconds and can retry failed loads without reusing failed package-owned scripts. Concurrent requests share loading, and cancellation prevents a late load from starting sign-in.

v0.11.2

Choose a tag to compare

@JoaoPauloCMarra JoaoPauloCMarra released this 24 Sep 17:40
4f54caf

[0.11.2] - 2026-09-24

Breaking changes

  • None.

Fixed

  • Android decodes Microsoft ID token claims from UTF-8 bytes without passing
    decoded payloads through JNI strings. Unicode claims remain intact, and
    malformed UTF-8 claims are rejected.

v0.11.1

Choose a tag to compare

@JoaoPauloCMarra JoaoPauloCMarra released this 19 Sep 15:27
1b08d9f

Breaking changes

  • None.

Added

  • Hidden example credentials lab at auth://e2e-credentials for nonce,
    capability, and snapshot coverage without live OAuth.

Changed

  • The example Expo pin follows SDK 57.0.24 (expo-doctor / expo install --check).
    React Native stays 0.86.3.
  • The example iOS host uses a SceneDelegate so the app can present a window on
    iOS 27 physical devices.
  • The example leaves ios.appleSignIn off unless NITRO_AUTH_APPLE_SIGN_IN=1,
    so a free personal team can install on a physical iPhone. Live Apple Sign-In
    still needs a paid Apple Developer team.
  • Native nonce hashing and JWT payload splits share cpp/AuthCrypto.cpp
    (SHA-256 hex + base64url). Signatures are still not verified. See
    docs/native-libraries.md.