Skip to content

Commit 2a19fc1

Browse files
avolkoviscottcrossen
authored andcommitted
Add conditional delays to auth-next (#2934)
* Add conditional delays to auth-next * [AUTOMATED]: Prettier Code Styling * Use typescript asserts keyword for typesafe assertions * [AUTOMATED]: Prettier Code Styling * Rebase conflicts & PR feedback * More PR Feedback * Strip debug asserts from prod builds * [AUTOMATED]: Prettier Code Styling * [AUTOMATED]: API Reports * Fix logic in assertion * Revert merge artifacts * PR Feedback
1 parent 60bdff0 commit 2a19fc1

File tree

3 files changed

+15545
-0
lines changed

3 files changed

+15545
-0
lines changed

packages-exp/auth-exp/src/api/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
ServerError,
2828
ServerErrorMap
2929
} from './errors';
30+
import { Delay } from '../core/util/delay';
3031

3132
export enum HttpMethod {
3233
POST = 'POST',

packages-exp/auth-exp/src/core/user/user_impl.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ function assertStringOrUndefined(
4949
);
5050
}
5151

52+
function assertStringOrUndefined(
53+
assertion: unknown,
54+
appName: string
55+
): asserts assertion is string | undefined {
56+
assert(
57+
typeof assertion === 'string' || typeof assertion === 'undefined',
58+
appName
59+
);
60+
}
61+
5262
export class UserImpl implements User {
5363
// For the user object, provider is always Firebase.
5464
readonly providerId = externs.ProviderId.FIREBASE;

0 commit comments

Comments
 (0)