Skip to content

Conversation

@hiranya911
Copy link
Contributor

@hiranya911 hiranya911 commented Mar 30, 2020

API for email action link generation. API proposal go/firebase-dotnet-mt

class ActionCodeSettings
  string Url
  boolean HandleCodeInApp
  string DynamicLinkDomain
  string IosBundleId
  string AndroidPackageName
  string AndroidMinimumVersion
  boolean AndroidInstallApp
class FirebaseAuth
  Task<string> GeneratePasswordResetLinkAsync(string email)
  Task<string> GeneratePasswordResetLinkAsync(string email, ActionCodeSettings settings)

RELEASE NOTE: Added GeneratePasswordResetLinkAsync() method for generating links for password reset flows.

Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@hiranya911 hiranya911 assigned egilmorez and unassigned hiranya911 Apr 1, 2020
@hiranya911 hiranya911 requested a review from egilmorez April 1, 2020 19:13
@hiranya911
Copy link
Contributor Author

@egilmorez please review the API docs in ActionCodeSettings and FirebaseAuth classes.

/// </summary>
/// <exception cref="FirebaseAuthException">If an error occurs while setting custom claims.</exception>
/// <param name="email">The email of the user whose password is to be reset.</param>
/// <param name="settings">The action code settings object which defines whether
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this technically should be "that" -- you're referring to a particular object that has these attributes, and not just adding information about the object.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

/// <param name="email">The email of the user whose password is to be reset.</param>
/// <param name="settings">The action code settings object which defines whether
/// the link is to be handled by a mobile app and the additional state information to be
/// passed in the deep link..</param>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra period here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

/// </summary>
/// <exception cref="FirebaseAuthException">If an error occurs while setting custom claims.</exception>
/// <param name="email">The email of the user whose password is to be reset.</param>
/// <param name="settings">The action code settings object which defines whether
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest "that," as above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

/// <param name="email">The email of the user whose password is to be reset.</param>
/// <param name="settings">The action code settings object which defines whether
/// the link is to be handled by a mobile app and the additional state information to be
/// passed in the deep link..</param>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra period.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

/// <summary>
/// Gets or sets a value indicating whether to open the link via a mobile app or a browser.
/// The default is false. When set to true, the action code link is sent as a Universal
/// Link or an Android App Link and is opened by the app if installed. In the false case,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is any of this relevant when the app isn't installed? I wonder if we need this phrase.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think those are orthogonal issues. If the app isn't installed, you will still get a dynamic link that will offer to install the app.

public string AndroidPackageName { get; set; }

/// <summary>
/// Gets or sets the minimum version for Android app. If the installed app is an older
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest "an Android app," or "the" if we mean the specific one being targeted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

@egilmorez egilmorez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few things to check, thanks!!

Copy link
Contributor

@egilmorez egilmorez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hiranya911 hiranya911 merged commit d51d33c into master Apr 2, 2020
@hiranya911 hiranya911 deleted the hkj-password-reset branch April 2, 2020 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants