-
Notifications
You must be signed in to change notification settings - Fork 948
[Auth] Update documentation to fill gaps #4743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nits for you Sam, thanks!
* @remarks | ||
* | ||
* This function allows more control over the Auth instance than | ||
* {@link getAuth}. `getAuth` will use platform-specific defaults to supply |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Global nit: we try to avoid "will" unless we really mean the future.
I think this, and in line 36, and probably elsewhere, are fine as present tense: uses, works, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* size if you're not using either `signInWithPopup` or `signInWithRedirect`. | ||
* | ||
* For example, if your app only uses anonymous accounts and you only want | ||
* accounts saved for the current session, you would initialize Auth thus: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest just commanding and replacing "thus" with words describing the difference (thus is a little over formal for Google).
Like, "If your app uses only anonymous . . . , initialize it with :"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -121,7 +121,7 @@ export class PhoneAuthCredential extends AuthCredential { | |||
return obj; | |||
} | |||
|
|||
/** {@inheritdoc AuthCredential.fromJSON} */ | |||
/** Generates a Phone credential based on a plain object or a JSON string. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Literal? Backtick if so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No literal here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we lowercase "phone" in that case?
@@ -46,6 +46,22 @@ export class SAMLAuthProvider extends FederatedAuthProvider { | |||
super(providerId); | |||
} | |||
|
|||
/** | |||
* Generates an {@link AuthCredential} from a {@link UserCredential} after a | |||
* successful SAML flow ompletes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* | ||
* There are two ways to initialize an auth instance: {@link getAuth} and | ||
* {@link initializeAuth}. `getAuth` initializes everything using | ||
* platform-specific configurations, while `initializeAuth` takes a Dependencies |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Literal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* @public | ||
*/ | ||
export interface Dependencies { | ||
/** | ||
* Which {@link Persistence} to use. If this is an array, the first | ||
* Persistence that the device supports is used. The SDK will search for an |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Literal Persistence
here and below?
Lots of "will" here too :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done and done
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
@@ -121,7 +121,7 @@ export class PhoneAuthCredential extends AuthCredential { | |||
return obj; | |||
} | |||
|
|||
/** {@inheritdoc AuthCredential.fromJSON} */ | |||
/** Generates a Phone credential based on a plain object or a JSON string. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we lowercase "phone" in that case?
Size Analysis ReportAffected Products
|
No description provided.