/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. */ #import NS_ASSUME_NONNULL_BEGIN NS_SWIFT_NAME(AuthenticationTokenClaims) @interface FBSDKAuthenticationTokenClaims : NSObject /// A unique identifier for the token. @property (nonatomic, readonly, strong) NSString *jti; /// Issuer Identifier for the Issuer of the response. @property (nonatomic, readonly, strong) NSString *iss; /// Audience(s) that this ID Token is intended for. @property (nonatomic, readonly, strong) NSString *aud; /// String value used to associate a Client session with an ID Token, and to mitigate replay attacks. @property (nonatomic, readonly, strong) NSString *nonce; /// Expiration time on or after which the ID Token MUST NOT be accepted for processing. @property (nonatomic, readonly, assign) NSTimeInterval exp; /// Time at which the JWT was issued. @property (nonatomic, readonly, assign) NSTimeInterval iat; /// Subject - Identifier for the End-User at the Issuer. @property (nonatomic, readonly, strong) NSString *sub; /// End-User's full name in displayable form including all name parts. @property (nullable, nonatomic, readonly, strong) NSString *name; /// End-User's given name in displayable form @property (nullable, nonatomic, readonly, strong) NSString *givenName; /// End-User's middle name in displayable form @property (nullable, nonatomic, readonly, strong) NSString *middleName; /// End-User's family name in displayable form @property (nullable, nonatomic, readonly, strong) NSString *familyName; /** End-User's preferred e-mail address. IMPORTANT: This field will only be populated if your user has granted your application the 'email' permission. */ @property (nullable, nonatomic, readonly, strong) NSString *email; /// URL of the End-User's profile picture. @property (nullable, nonatomic, readonly, strong) NSString *picture; /** End-User's friends. IMPORTANT: This field will only be populated if your user has granted your application the 'user_friends' permission. */ @property (nullable, nonatomic, readonly, strong) NSArray *userFriends; /// End-User's birthday @property (nullable, nonatomic, readonly, strong) NSString *userBirthday; /// End-User's age range @property (nullable, nonatomic, readonly, strong) NSDictionary *userAgeRange; /// End-User's hometown @property (nullable, nonatomic, readonly, strong) NSDictionary *userHometown; /// End-User's location @property (nullable, nonatomic, readonly, strong) NSDictionary *userLocation; /// End-User's gender @property (nullable, nonatomic, readonly, strong) NSString *userGender; /// End-User's link @property (nullable, nonatomic, readonly, strong) NSString *userLink; - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; @end NS_ASSUME_NONNULL_END