Credential

public struct Credential

A Credential represents data that uniquely identifies a Realm Object Server user.

  • Initialize a new credential using a custom token, authentication provider, and user information dictionary. In most cases, the convenience initializers should be used instead.

    Declaration

    Swift

    public init(customToken token: Token, provider: Provider, userInfo: [String: Any] = [:])
  • Initialize a new credential using a Facebook account token.

    Declaration

    Swift

    public static func facebook(token: Token) -> Credential
  • Initialize a new credential using a Google account token.

    Declaration

    Swift

    public static func google(token: Token) -> Credential
  • Initialize a new credential using an iCloud account token.

    Declaration

    Swift

    public static func iCloud(token: Token) -> Credential
  • Initialize a new credential using a Realm Object Server username and password.

    Declaration

    Swift

    public static func usernamePassword(username: String,
                                            password: String,
                                            actions: AuthenticationActions) -> Credential
  • Initialize a new credential using a Realm Object Server access token.

    Declaration

    Swift

    public static func accessToken(_ accessToken: String, identity: String) -> Credential