Skip to content

Commit 06654e8

Browse files
Put secret and oauth credentials into the private headers for now. (#2916)
1 parent bef0dfb commit 06654e8

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

Firebase/Auth/Source/Auth/FIRAuthDataResult_Internal.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,18 @@
1616

1717
#import "FIRAuthDataResult.h"
1818

19+
@class FIROAuthCredential;
20+
1921
NS_ASSUME_NONNULL_BEGIN
2022

2123
@interface FIRAuthDataResult () <NSSecureCoding>
2224

25+
/** @property credential
26+
@brief The updated OAuth credential after the the sign-in, link and reauthenticate action.
27+
@detail This property is for OAuth sign in only.
28+
*/
29+
@property(nonatomic, readonly, nullable) FIROAuthCredential *credential;
30+
2331
/** @fn initWithUser:additionalUserInfo:
2432
@brief Designated initializer.
2533
@param user The signed in user reference.

Firebase/Auth/Source/AuthProvider/OAuth/FIROAuthCredential_Internal.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ NS_ASSUME_NONNULL_BEGIN
4242
*/
4343
@property(nonatomic, readonly, nullable) NSString *pendingToken;
4444

45+
/** @property secret
46+
@brief The secret associated with this credential. This will be nil for OAuth 2.0 providers.
47+
@detail OAuthCredential already exposes a providerId getter. This will help the developer
48+
determine whether an access token/secret pair is needed.
49+
*/
50+
@property(nonatomic, readonly, nullable) NSString *secret;
51+
4552
/** @fn initWithProviderId:IDToken:accessToken:secret:pendingToken
4653
@brief Designated initializer.
4754
@param providerID The provider ID associated with the credential being created.

Firebase/Auth/Source/Public/FIRAuthDataResult.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#import <Foundation/Foundation.h>
1818

1919
@class FIRAdditionalUserInfo;
20-
@class FIROAuthCredential;
2120
@class FIRUser;
2221

2322
NS_ASSUME_NONNULL_BEGIN
@@ -38,14 +37,7 @@ NS_SWIFT_NAME(AuthDataResult)
3837
/** @property user
3938
@brief The signed in user.
4039
*/
41-
@property(nonatomic, readonly, nullable) FIRUser *user;
42-
43-
/** @property credential
44-
@brief The updated OAuth credential after the the sign-in, link and reauthenticate action.
45-
@detial This property is for OAuth sign in only.
46-
*/
47-
@property(nonatomic, readonly, nullable) FIROAuthCredential *credential;
48-
40+
@property(nonatomic, readonly) FIRUser *user;
4941

5042
/** @property additionalUserInfo
5143
@brief If available contains the additional IdP specific information about signed in user.

Firebase/Auth/Source/Public/FIROAuthCredential.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ NS_SWIFT_NAME(OAuthCredential)
3636
*/
3737
@property(nonatomic, readonly, nullable) NSString *accessToken;
3838

39-
/** @property secret
40-
@brief The secret associated with this credential. This will be nil for OAuth 2.0 providers.
41-
@detail OAuthCredential already exposes a providerId getter. This will help the developer
42-
determine whether an access token/secret pair is needed.
43-
*/
44-
@property(nonatomic, readonly, nullable) NSString *secret;
45-
4639
/** @fn init
4740
@brief This class is not supposed to be instantiated directly.
4841
*/

0 commit comments

Comments
 (0)