No Description

FIRFacebookAuthProvider.h 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. @class FIRAuthCredential;
  18. NS_ASSUME_NONNULL_BEGIN
  19. /**
  20. @brief A string constant identifying the Facebook identity provider.
  21. */
  22. extern NSString *const FIRFacebookAuthProviderID NS_SWIFT_NAME(FacebookAuthProviderID);
  23. /**
  24. @brief A string constant identifying the Facebook sign-in method.
  25. */
  26. extern NSString *const _Nonnull FIRFacebookAuthSignInMethod NS_SWIFT_NAME(FacebookAuthSignInMethod);
  27. /** @class FIRFacebookAuthProvider
  28. @brief Utility class for constructing Facebook credentials.
  29. */
  30. NS_SWIFT_NAME(FacebookAuthProvider)
  31. @interface FIRFacebookAuthProvider : NSObject
  32. /** @fn credentialWithAccessToken:
  33. @brief Creates an `FIRAuthCredential` for a Facebook sign in.
  34. @param accessToken The Access Token from Facebook.
  35. @return A FIRAuthCredential containing the Facebook credentials.
  36. */
  37. + (FIRAuthCredential *)credentialWithAccessToken:(NSString *)accessToken;
  38. /** @fn init
  39. @brief This class should not be initialized.
  40. */
  41. - (instancetype)init NS_UNAVAILABLE;
  42. @end
  43. NS_ASSUME_NONNULL_END