FIRRevokeTokenRequest.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright 2023 Google LLC
  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 "FirebaseAuth/Sources/Backend/FIRAuthRPCRequest.h"
  17. #import "FirebaseAuth/Sources/Backend/FIRIdentityToolkitRequest.h"
  18. NS_ASSUME_NONNULL_BEGIN
  19. @interface FIRRevokeTokenRequest : FIRIdentityToolkitRequest <FIRAuthRPCRequest>
  20. /** @property providerID
  21. @brief The provider that issued the token to revoke.
  22. */
  23. @property(nonatomic, copy, nullable) NSString *providerID;
  24. /** @property tokenType
  25. @brief The type of the token to revoke.
  26. */
  27. @property(nonatomic) NSInteger tokenType;
  28. /** @property token
  29. @brief The token to be revoked.
  30. */
  31. @property(nonatomic, copy, nullable) NSString *token;
  32. /** @property idToken
  33. @brief The ID Token associated with this credential.
  34. */
  35. @property(nonatomic, copy, nullable) NSString *idToken;
  36. /** @fn initWithEndpoint:requestConfiguration:
  37. @brief Please use initWithToken:requestConfiguration: instead.
  38. */
  39. - (nullable instancetype)initWithEndpoint:(NSString *)endpoint
  40. requestConfiguration:(FIRAuthRequestConfiguration *)requestConfiguration
  41. NS_UNAVAILABLE;
  42. /** @fn initWithAppToken:isSandbox:requestConfiguration:
  43. @brief Designated initializer.
  44. @param token The token to be revoked.
  45. @param idToken The id token associated with the current user.
  46. @param requestConfiguration An object containing configurations to be added to the request.
  47. */
  48. - (nullable instancetype)initWithToken:(NSString *)token
  49. idToken:(NSString *)idToken
  50. requestConfiguration:(FIRAuthRequestConfiguration *)requestConfiguration;
  51. @end
  52. NS_ASSUME_NONNULL_END