Skip to content

Changelog

  • include id in requestAttributes JSON-RPC request (#104)
  • Make @icp-sdk/signer a direct dep and bump its minor version. (#101)
  • add requestAttributes for signed user attributes (#85)
  • login() is now renamed to signIn()
    • AuthClient.create() removed — use new AuthClient() instead
  • getIdentity() is now async (returns Promise<Identity>)
  • isAuthenticated() is now sync (returns boolean instead of Promise<boolean>)
    • identityProvider, derivationOrigin, and windowOpenerFeatures moved from AuthClientLoginOptions to AuthClientCreateOptions
  • loginOptions field removed from AuthClientCreateOptions
    • allowPinAuthentication and customValues login options removed (not supported by the signer protocol)
  • InternetIdentityAuthResponseSuccess type removed
  • ERROR_USER_INTERRUPT removed
  • one-click OpenID sign-in (#83)
  • update README and quick-start for new API (#82)
  • fresh session keys, improved error handling, singleton IdleManager (#80)
  • reorganize auth-client code structure (#84)
  • sync constructor, sync isAuthenticated, async getIdentity (#81)
  • replace custom postMessage protocol with @icp-sdk/signer (#75)
  • build: bump @icp-sdk/core to 5.0.0 (#65)
  • build: bump @icp-sdk/core to 5.0.0-beta.2 (#62)
  • build: bump @icp-sdk/core to 5.0.0-beta.1 (#55)
  • build: bump @icp-sdk/core to 5.0.0-beta.0 (#55)
  • revert support requesting delegations with ICRC-29 (#50)
  • throw error if IndexedDB fails to open (#45)
  • support requesting delegations using ICRC-29 (#39)
  • client: overwrite stored key on login to prevent key/delegation mismatch (#34)
  • Downgrade idb to fix the “localStorage is not defined” error when the library is used in a web worker context. (#28)

Publishes the new @icp-sdk/auth package.

See the upgrading guide for more information.

This package was previously published as @dfinity/auth-client and its source code was hosted at dfinity/icp-js-core. The CHANGELOG of that repository contains the history of the changes up until v3.