Docs Menu

Link User Identities - Java SDK

On this page

  • Example

Realm provides many authentication providers to log users into your app. Each provider creates a unique user identity. Realm lets you merge multiple credentials into one user identity.

Consider an application that offers anonymous login, which allows users to explore the app without registering. If a user wants to continue using the application, they can create a permanent account by using another Authentication provider. Realm creates a new User object. The app can then link the new identity with the current User.

Note

Depending on how you have configured email/password authentication, there may be additional steps (confirming the email address, for example) before the new account is created and can be linked to.

You link identities using linkCredentials() or linkCredentialsAsync(). This links authentication providers to a logged-in User object.

←  Debugging - Java SDKMulti-User Applications - Java SDK →

On this page

Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.