UserIdentity

data class UserIdentity(val id: String, val provider: AuthenticationProvider)

Each User on Atlas App Services is uniquely identified by their User.id, but this id cannot be used across multiple authentication providers, as they all have their own notation on what defines a user. This class thus represents a users identity towards one single authentication provider.

A single User on App Services can have multiple user identities, one towards each authentication provider, e.g. an example would be an app user that can log in using either a custom email account or a Google account.

The list of all user identities associated with an App Services user can be found through User.identities. It is possible to add more user identities through User.linkCredentials.

Constructors

Link copied to clipboard
constructor(id: String, provider: AuthenticationProvider)

Properties

Link copied to clipboard
val id: String

A unique identifier for this identity. The identifier is only unique for the given provider.

Link copied to clipboard

The provider responsible for defining and managing this identity.