Skip to content

Commit

Permalink
Fix developer documentation for LoginAuthType
Browse files Browse the repository at this point in the history
Reviewed By: josueBrizuelaXD

Differential Revision: D35949722

fbshipit-source-id: 83d933297689088cd78d66f3c2b8aa755710bc4f
  • Loading branch information
samodom authored and facebook-github-bot committed Apr 27, 2022
1 parent 165d79d commit 6df80d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion FBSDKLoginKit/FBSDKLoginKit/FBLoginButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public final class FBLoginButton: FBButton {
/// Gets or sets an optional page id to use for login attempts.
public var messengerPageId: String?

/// Gets or sets the auth_type to use in the login request. Defaults to `rerequest`.
/// Gets or sets the login authorization type to use in the login request. Defaults to `rerequest`. Use `nil` to avoid
/// requesting permissions that were previously denied.
public var authType: LoginAuthType? = .rerequest

/// The code verifier used in the PKCE process.
Expand Down
7 changes: 3 additions & 4 deletions FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginAuthType.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@

#if !TARGET_OS_TV

/// typedef for FBSDKLoginAuthType
/// See: https://developers.facebook.com/docs/reference/javascript/FB.login/v10.0#options
/// Login authorization types.
typedef NSString *const FBSDKLoginAuthType NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(LoginAuthType);

/// Rerequest
/// The default login authorization type for login buttons; requests previously declined user permissions.
FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeRerequest;

/// Reauthorize
/// Requests permissions when the user's data access has expired.
FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeReauthorize;

#endif

0 comments on commit 6df80d7

Please sign in to comment.