You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.8 KiB

6 years ago
6 years ago
  1. /*
  2. * Copyright 2017 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import <Foundation/Foundation.h>
  17. #import "FIRAuthCredential_Internal.h"
  18. NS_ASSUME_NONNULL_BEGIN
  19. /** @class FIREmailPasswordAuthCredential
  20. @brief Internal implementation of FIRAuthCredential for Email/Password credentials.
  21. */
  22. @interface FIREmailPasswordAuthCredential : FIRAuthCredential <NSSecureCoding>
  23. /** @property email
  24. @brief The user's email address.
  25. */
  26. @property(nonatomic, readonly) NSString *email;
  27. /** @property password
  28. @brief The user's password.
  29. */
  30. @property(nonatomic, readonly) NSString *password;
  31. /** @property link
  32. @brief The email sign-in link.
  33. */
  34. @property(nonatomic, readonly) NSString *link;
  35. /** @fn initWithEmail:password:
  36. @brief Designated initializer.
  37. @param email The user's email address.
  38. @param password The user's password.
  39. */
  40. - (nullable instancetype)initWithEmail:(NSString *)email password:(NSString *)password
  41. NS_DESIGNATED_INITIALIZER;
  42. /** @fn initWithEmail:link:
  43. @brief Designated initializer.
  44. @param email The user's email address.
  45. @param link The email sign-in link.
  46. */
  47. - (nullable instancetype)initWithEmail:(NSString *)email link:(NSString *)link
  48. NS_DESIGNATED_INITIALIZER;
  49. @end
  50. NS_ASSUME_NONNULL_END