@@ -42,6 +42,7 @@ import { getModularInstance } from '@firebase/util';
42
42
*
43
43
* @remarks
44
44
* To handle the results and errors for this operation, refer to {@link getRedirectResult}.
45
+ * Follow the [best practices](https://firebase.google.com/docs/auth/web/redirect-best-practices) when using {@link signInWithRedirect}.
45
46
*
46
47
* @example
47
48
* ```javascript
@@ -103,6 +104,9 @@ export async function _signInWithRedirect(
103
104
104
105
/**
105
106
* Reauthenticates the current user with the specified {@link OAuthProvider} using a full-page redirect flow.
107
+ * @remarks
108
+ * To handle the results and errors for this operation, refer to {@link getRedirectResult}.
109
+ * Follow the [best practices](https://firebase.google.com/docs/auth/web/redirect-best-practices) when using {@link reauthenticateWithRedirect}.
106
110
*
107
111
* @example
108
112
* ```javascript
@@ -113,8 +117,8 @@ export async function _signInWithRedirect(
113
117
*
114
118
* // After returning from the redirect when your app initializes you can obtain the result
115
119
* const result = await getRedirectResult(auth);
116
- * // Link using a redirect.
117
- * await linkWithRedirect (result.user, provider);
120
+ * // Reauthenticate using a redirect.
121
+ * await reauthenticateWithRedirect (result.user, provider);
118
122
* // This will again trigger a full page redirect away from your app
119
123
*
120
124
* // After returning from the redirect when your app initializes you can obtain the result
@@ -162,6 +166,9 @@ export async function _reauthenticateWithRedirect(
162
166
163
167
/**
164
168
* Links the {@link OAuthProvider} to the user account using a full-page redirect flow.
169
+ * @remarks
170
+ * To handle the results and errors for this operation, refer to {@link getRedirectResult}.
171
+ * Follow the [best practices](https://firebase.google.com/docs/auth/web/redirect-best-practices) when using {@link linkWithRedirect}.
165
172
*
166
173
* @example
167
174
* ```javascript
0 commit comments