From e0ec4235cc7b8d05ec1aaa414ec2d2cac798d74e Mon Sep 17 00:00:00 2001 From: lpw Date: Sat, 03 Jun 2023 09:18:20 +0800 Subject: [PATCH] 3.15.0 --- frameworks/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h | 46 ++++++++++++++++++++++++++++------------------ 1 files changed, 28 insertions(+), 18 deletions(-) diff --git a/frameworks/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h b/frameworks/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h index b79d1d9..344ebb5 100644 --- a/frameworks/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h +++ b/frameworks/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h @@ -8,46 +8,48 @@ #import <Foundation/Foundation.h> +#import <FBSDKCoreKit/FBSDKAuthenticationTokenProviding.h> + @class FBSDKAuthenticationTokenClaims; @protocol FBSDKTokenCaching; NS_ASSUME_NONNULL_BEGIN -/** - Represent an AuthenticationToken used for a login attempt -*/ +/// Represent an AuthenticationToken used for a login attempt NS_SWIFT_NAME(AuthenticationToken) -@interface FBSDKAuthenticationToken : NSObject <NSCopying, NSObject, NSSecureCoding> +@interface FBSDKAuthenticationToken : NSObject <NSCopying, NSObject, NSSecureCoding, FBSDKAuthenticationTokenProviding> + +/** + Internal init method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (instancetype)initWithTokenString:(NSString *)tokenString + nonce:(NSString *)nonce + graphDomain:(NSString *)graphDomain; - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; /** - The "global" authentication token that represents the currently logged in user. + The "global" authentication token that represents the currently logged in user. The `currentAuthenticationToken` represents the authentication token of the current user and can be used by a client to verify an authentication attempt. */ -@property (class, nullable, nonatomic, copy) FBSDKAuthenticationToken *currentAuthenticationToken; +@property (class, nullable, nonatomic, copy) FBSDKAuthenticationToken *currentAuthenticationToken NS_SWIFT_NAME(current); -/** - The raw token string from the authentication response - */ +/// The raw token string from the authentication response @property (nonatomic, readonly, copy) NSString *tokenString; -/** - The nonce from the decoded authentication response - */ +/// The nonce from the decoded authentication response @property (nonatomic, readonly, copy) NSString *nonce; -/** - The graph domain where the user is authenticated. - */ +/// The graph domain where the user is authenticated. @property (nonatomic, readonly, copy) NSString *graphDomain; -/** - Returns the claims encoded in the AuthenticationToken - */ +/// Returns the claims encoded in the AuthenticationToken - (nullable FBSDKAuthenticationTokenClaims *)claims; /** @@ -58,6 +60,14 @@ */ @property (class, nullable, nonatomic, copy) id<FBSDKTokenCaching> tokenCache; +#pragma mark - Test methods + +#if DEBUG +- (instancetype)initWithTokenString:(NSString *)tokenString + nonce:(NSString *)nonce; ++ (void)resetCurrentAuthenticationTokenCache; +#endif + @end NS_ASSUME_NONNULL_END -- Gitblit v1.8.0