| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- /*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- #import "FirebaseAuth/Sources/Backend/FIRAuthRPCRequest.h"
- #import "FirebaseAuth/Sources/Backend/FIRIdentityToolkitRequest.h"
- NS_ASSUME_NONNULL_BEGIN
- @interface FIRRevokeTokenRequest : FIRIdentityToolkitRequest <FIRAuthRPCRequest>
- /** @property providerID
- @brief The provider that issued the token to revoke.
- */
- @property(nonatomic, copy) NSString *providerID;
- /** @property tokenType
- @brief The type of the token to revoke.
- */
- @property(nonatomic) NSInteger tokenType;
- /** @property token
- @brief The token to be revoked.
- */
- @property(nonatomic, copy) NSString *token;
- /** @property idToken
- @brief The ID Token associated with this credential.
- */
- @property(nonatomic, copy) NSString *idToken;
- /** @fn initWithEndpoint:requestConfiguration:
- @brief Please use initWithToken:requestConfiguration: instead.
- */
- - (nullable instancetype)initWithEndpoint:(NSString *)endpoint
- requestConfiguration:(FIRAuthRequestConfiguration *)requestConfiguration
- NS_UNAVAILABLE;
- /** @fn initWithAppToken:isSandbox:requestConfiguration:
- @brief Designated initializer.
- @param token The token to be revoked.
- @param idToken The id token associated with the current user.
- @param requestConfiguration An object containing configurations to be added to the request.
- */
- - (nullable instancetype)initWithToken:(NSString *)token
- idToken:(NSString *)idToken
- requestConfiguration:(FIRAuthRequestConfiguration *)requestConfiguration;
- @end
- NS_ASSUME_NONNULL_END
|