docs: update Internet Identity guide for new AuthClient API (v7.0.0)#193
Merged
docs: update Internet Identity guide for new AuthClient API (v7.0.0)#193
Conversation
The @icp-sdk/auth library was updated: AuthClient is now constructed directly (not via a static factory), sign-in is promise-based, and isAuthenticated() and getIdentity() flipped sync/async. Also moves identityProvider, derivationOrigin, and openIdProvider onto the constructor, and adds a one-click OpenID example.
…eam comment - Bumps .sources/icp-js-sdk-docs to 17e4346 (auth v7.0.0) - Fixes broken ../../reference/ link to ../../references/ (internet-identity-spec.md) - Updates Upstream comment to reference icp-js-sdk-docs submodule instead of upstream source repo
Adds msg_caller_info_data and msg_caller_info_signer to ic_cdk::api, which are required by the Rust backend example in the Internet Identity guide (identity attributes section). No other user-facing API changes between 0.19.0 and 0.20.1.
raymondk
approved these changes
May 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/guides/authentication/internet-identity.mdxfor the@icp-sdk/authv6/v7 breaking API changes:AuthClient.create()replaced bynew AuthClient({ identityProvider })login({ onSuccess, onError })replaced by promise-basedawait signIn()logout()renamed tosignOut()isAuthenticated()is now sync;getIdentity()is now asyncidentityProvider,derivationOrigin, andopenIdProvidermove to the constructoropenIdProvider: 'google' | 'apple' | 'microsoft')requestAttributes,AttributesIdentity,scopedKeys, and backend verification withmsg_caller_info_data/msg_caller_info_signer(Motoko and Rust)derivationOriginon the constructorSupersedes #189 (contributor branch rebased onto main, submodule bumps added on top — all commits from the original author are preserved in history).
Submodule bumps included:
icp-js-sdk-docs→17e4346(auth v7.0.0, includesscopedKeys,SignedAttributes, updatedAuthClientdocs)cdk-rs→317f55c(ic-cdk v0.20.1, addsmsg_caller_info_data/msg_caller_info_signertoic_cdk::api)Sync recommendation
informed by dfinity/icp-js-sdk-docs (public/auth/latest.zip — AuthClient, scopedKeys, SignedAttributes, AuthClientCreateOptions; public/core/latest.zip — AttributesIdentity); caffeinelabs/motoko (src/prelude/prim.mo, test/run-drun/caller-info/); dfinity/cdk-rs (ic-cdk/src/api.rs)