/* * Copyright 2024 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 #import "GoogleSignIn/Sources/GIDCallbackQueue.h" NS_ASSUME_NONNULL_BEGIN @class OIDAuthState; @class GIDProfileData; /// The callback queue used for authentication flow. @interface GIDAuthFlow : GIDCallbackQueue /// A representation of the state of the OAuth session for this instance. @property(nonatomic, strong, nullable) OIDAuthState *authState; /// The error thrown from the OAuth session encountered for this instance. @property(nonatomic, strong, nullable) NSError *error; /// The EMM support version. @property(nonatomic, copy, nullable) NSString *emmSupport; /// The profile data extracted from the ID token. @property(nonatomic, nullable) GIDProfileData *profileData; /// Initialize a `GIDAuthFlow` object by specifying all available properties. /// /// @param authState The configuration to be used. /// @param error The configuration to be used. /// @param emmSupport The configuration to be used. /// @param profileData The configuration to be used. /// @return An initialized `GIDAuthFlow` instance. - (instancetype)initWithAuthState:(nullable OIDAuthState *)authState error:(nullable NSError *)error emmSupport:(nullable NSString *)emmSupport profileData:(nullable GIDProfileData *)profileData NS_DESIGNATED_INITIALIZER; /// Initialize a `GIDAuthFlow` object by calling the designated initializer with `nil` values. /// /// @return An initialized `GIDAuthFlow` instance. - (instancetype)init; @end NS_ASSUME_NONNULL_END