From fc8e1a1d5850fdc77f3a5b72edbfc0a3c281fd09 Mon Sep 17 00:00:00 2001 From: greatSumini Date: Fri, 29 Apr 2022 23:22:37 +0900 Subject: [PATCH] feat(): add enable_profile_selector,profile_selector_ids to LoginOptions --- src/types/params.type.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/types/params.type.ts b/src/types/params.type.ts index 14c4c603..93fb2a17 100644 --- a/src/types/params.type.ts +++ b/src/types/params.type.ts @@ -60,10 +60,15 @@ export type LoginOptions = { scope: string; /** When true, the granted scopes will be returned in a comma-separated list in the grantedScopes field of the authResponse - * @default false - */ + * @default false */ return_scopes?: boolean; + /** When true, prompt the user to grant permission for one or more Pages */ + enable_profile_selector?: boolean; + + /** Comma separated list of IDs to display in the profile selector */ + profile_selector_ids?: string; + /** The auth_nonce parameter is intended to be a completely arbitrary alphanumeric code that your app generates. The process of generation and format of this code is entirely up to you. For example, a hashed version of a timestamp and a secret string may be sufficient, as long as it's completely unique to each Login attempt. This value enables your app to determine whether a user has been re-authenticated. */ auth_nonce?: string | (() => string); }; @@ -116,10 +121,7 @@ export type FacebookLoginProps = Pick & { initParams?: Omit; - loginOptions?: Pick< - LoginOptions, - 'auth_type' | 'return_scopes' | 'auth_nonce' - >; + loginOptions?: Omit; dialogParams?: Pick; };