Class StitchUserImpl

    • Method Detail

      • linkWithCredential

        public Task<StitchUser> linkWithCredential​(StitchCredential credential)
        Description copied from interface: StitchUser
        Links this user with another identity represented by the given credential.

        Linking allows one user to become associated with another credential. For example, suppose a user logs in anonymously to try the app before deciding to create an account. This method allows the data associated with the anonymous credential to be associated with the new account credential.

        Specified by:
        linkWithCredential in interface StitchUser
        Parameters:
        credential - the credential bound to an identity to link to.
        Returns:
        a Task containing the newly linked user with a new identity added associated with the given credential.