RLMCredentials
@interface RLMCredentials : NSObject
Opaque credentials representing a specific Realm App user.
-
The name of the identity provider which generated the credentials token.
Declaration
Objective-C
@property (nonatomic) RLMIdentityProvider _Nonnull provider;
-
Construct and return credentials from a Facebook account token.
Declaration
Objective-C
+ (nonnull instancetype)credentialsWithFacebookToken: (nonnull RLMCredentialsToken)token;
-
Construct and return credentials from a Google account token.
Declaration
Objective-C
+ (nonnull instancetype)credentialsWithGoogleAuthCode: (nonnull RLMCredentialsToken)token;
-
Construct and return credentials from an Apple account token.
Declaration
Objective-C
+ (nonnull instancetype)credentialsWithAppleToken: (nonnull RLMCredentialsToken)token;
-
Construct and return credentials for a MongoDB Realm function using a mongodb document as a json payload.
Declaration
Objective-C
+ (nonnull instancetype)credentialsWithFunctionPayload: (nonnull NSDictionary<NSString *, id<RLMBSON>> *)payload;
-
Construct and return credentials from a user api key.
Declaration
Objective-C
+ (nonnull instancetype)credentialsWithUserAPIKey:(nonnull NSString *)apiKey;
-
Construct and return credentials from a server api key.
Declaration
Objective-C
+ (nonnull instancetype)credentialsWithServerAPIKey:(nonnull NSString *)apiKey;
-
Construct and return MongoDB Realm credentials from an email and password.
Declaration
Objective-C
+ (nonnull instancetype)credentialsWithEmail:(nonnull NSString *)email password:(nonnull NSString *)password;
-
Construct and return credentials from a JSON Web Token.
Declaration
Objective-C
+ (nonnull instancetype)credentialsWithJWT:(nonnull NSString *)token;
-
Construct and return anonymous credentials
Declaration
Objective-C
+ (nonnull instancetype)anonymousCredentials;