CDPotion.Domain.FedCm (cdpotion v0.1.4)
Summary
Types
Corresponds to IdentityRequestAccount
Whether the dialog shown is an account chooser or an auto re-authentication dialog.
Whether this is a sign-up or sign-in action for this account, i.e. whether this account has ever been used to sign in to this RP before.
Functions
Parameters:
- (Required)
dialog_id
: description not provided :( - (Optional)
trigger_cooldown
: description not provided :(
Parameters:
- (Optional)
disable_rejection_delay
: Allows callers to disable the promise rejection delay that would normally happen, if this is unimportant to what's being tested. (step 4 of https://fedidcg.github.io/FedCM/#browser-api-rp-sign-in)
Resets the cooldown time, if any, to allow the next FedCM call to show a dialog even if one was recently dismissed by the user.
Parameters:
- (Required)
dialog_id
: description not provided :( - (Required)
account_index
: description not provided :(
Types
account()
@type account() :: %{ accountId: String.t(), email: String.t(), givenName: String.t(), idpConfigUrl: String.t(), idpSigninUrl: String.t(), loginState: login_state(), name: String.t(), pictureUrl: String.t(), privacyPolicyUrl: String.t() | nil, termsOfServiceUrl: String.t() | nil }
Corresponds to IdentityRequestAccount
dialog_type()
@type dialog_type() :: :AccountChooser | :AutoReauthn
Whether the dialog shown is an account chooser or an auto re-authentication dialog.
login_state()
@type login_state() :: :SignIn | :SignUp
Whether this is a sign-up or sign-in action for this account, i.e. whether this account has ever been used to sign in to this RP before.
Functions
disable()
dismiss_dialog(dialog_id, trigger_cooldown \\ nil)
Parameters:
- (Required)
dialog_id
: description not provided :( - (Optional)
trigger_cooldown
: description not provided :(
enable(disable_rejection_delay \\ nil)
Parameters:
- (Optional)
disable_rejection_delay
: Allows callers to disable the promise rejection delay that would normally happen, if this is unimportant to what's being tested. (step 4 of https://fedidcg.github.io/FedCM/#browser-api-rp-sign-in)
reset_cooldown()
Resets the cooldown time, if any, to allow the next FedCM call to show a dialog even if one was recently dismissed by the user.
select_account(dialog_id, account_index)
Parameters:
- (Required)
dialog_id
: description not provided :( - (Required)
account_index
: description not provided :(