-
Notifications
You must be signed in to change notification settings - Fork 938
Fix a bunch of little issues with the new auth API #3999
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
|
|
||
For the [Operation.REVERT\_SECOND\_FACTOR\_ADDITION](./auth-types.operation.revert_second_factor_addition.md) action, which allows a user to unenroll a newly added second factor, this object contains a `multiFactorInfo` field with the information about the second factor. For phone second factor, the `multiFactorInfo` is a [MultiFactorInfo](./auth-types.multifactorinfo.md) object, which contains the phone number. | ||
For the action, which allows a user to unenroll a newly added second factor, this object contains a `multiFactorInfo` field with the information about the second factor. For phone second factor, the `multiFactorInfo` is a [MultiFactorInfo](./auth-types.multifactorinfo.md) object, which contains the phone number. |
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.
looks like a broken @link in the docs
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.
Can you also pull in the changes from #3990 so I can close that PR
@@ -24,7 +24,7 @@ import { OAuthCredential } from '../credentials/oauth'; | |||
|
|||
export type CustomParameters = Record<string, string>; | |||
|
|||
interface CredentialParameters { | |||
export interface OAuthCredentialOptions { |
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 this live in auth-types-exp?
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; this is an internal-only interface
@@ -35,13 +31,13 @@ import { User, UserCredential } from '../../model/user'; | |||
import { testAuth, testUser } from '../../../test/helpers/mock_auth'; | |||
|
|||
describe('core/user/additional_user_info', () => { | |||
const userProfileWithLogin: UserProfile = { | |||
const userProfileWithLogin: Record<string, unknown> = { |
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.
is this type necessary 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.
Yes; object literals should have a strong type specified
fada3a0
to
3de3868
Compare
e3935d9
to
f841fb2
Compare
Size Analysis ReportAffected Products
|
Type | Base (f2562c2) | Head (02480d1) | Diff |
---|---|---|---|
size | 29.4 kB | 29.4 kB | -5 B (-0.0%) |
size_with_ext_deps | 39.9 kB | 39.9 kB | -5 B (-0.0%) |
browserPopupRedirectResolver
Size
Type | Base (f2562c2) | Head (02480d1) | Diff |
---|---|---|---|
size | 45.3 kB | 45.3 kB | -28 B (-0.1%) |
size_with_ext_deps | 55.9 kB | 55.9 kB | -28 B (-0.1%) |
getAuth
Size
Type | Base (f2562c2) | Head (02480d1) | Diff |
---|---|---|---|
size | 55.5 kB | 55.5 kB | -28 B (-0.1%) |
size_with_ext_deps | 66.8 kB | 66.8 kB | -28 B (-0.0%) |
getMultiFactorResolver
Size
Type | Base (f2562c2) | Head (02480d1) | Diff |
---|---|---|---|
size | 31.3 kB | 31.2 kB | -35 B (-0.1%) |
size_with_ext_deps | 41.8 kB | 41.7 kB | -36 B (-0.1%) |
getRedirectResult
Size
Type | Base (f2562c2) | Head (02480d1) | Diff |
---|---|---|---|
size | 34.1 kB | 34.1 kB | +7 B (+0.0%) |
size_with_ext_deps | 44.6 kB | 44.6 kB | +7 B (+0.0%) |
linkWithPopup
Size
Type | Base (f2562c2) | Head (02480d1) | Diff |
---|---|---|---|
size | 36.9 kB | 36.9 kB | -28 B (-0.1%) |
size_with_ext_deps | 47.5 kB | 47.4 kB | -28 B (-0.1%) |
reauthenticateWithCredential
Size
Type | Base (f2562c2) | Head (02480d1) | Diff |
---|---|---|---|
size | 30.1 kB | 30.1 kB | -28 B (-0.1%) |
size_with_ext_deps | 40.6 kB | 40.6 kB | -28 B (-0.1%) |
reauthenticateWithPhoneNumber
Size
Type | Base (f2562c2) | Head (02480d1) | Diff |
---|---|---|---|
size | 33.6 kB | 33.6 kB | -28 B (-0.1%) |
size_with_ext_deps | 44.1 kB | 44.1 kB | -28 B (-0.1%) |
reauthenticateWithPopup
Size
Type | Base (f2562c2) | Head (02480d1) | Diff |
---|---|---|---|
size | 37.0 kB | 36.9 kB | -28 B (-0.1%) |
size_with_ext_deps | 47.5 kB | 47.5 kB | -28 B (-0.1%) |
signInWithCredential
Size
Type | Base (f2562c2) | Head (02480d1) | Diff |
---|---|---|---|
size | 29.9 kB | 29.9 kB | -28 B (-0.1%) |
size_with_ext_deps | 40.4 kB | 40.4 kB | -28 B (-0.1%) |
signInWithEmailAndPassword
Size
Type | Base (f2562c2) | Head (02480d1) | Diff |
---|---|---|---|
size | 33.3 kB | 33.3 kB | -28 B (-0.1%) |
size_with_ext_deps | 43.9 kB | 43.8 kB | -28 B (-0.1%) |
signInWithEmailLink
Size
Type | Base (f2562c2) | Head (02480d1) | Diff |
---|---|---|---|
size | 33.5 kB | 33.5 kB | -28 B (-0.1%) |
size_with_ext_deps | 44.0 kB | 44.0 kB | -28 B (-0.1%) |
signInWithPhoneNumber
Size
Type | Base (f2562c2) | Head (02480d1) | Diff |
---|---|---|---|
size | 33.4 kB | 33.4 kB | -28 B (-0.1%) |
size_with_ext_deps | 43.9 kB | 43.9 kB | -28 B (-0.1%) |
signInWithPopup
Size
Type | Base (f2562c2) | Head (02480d1) | Diff |
---|---|---|---|
size | 36.9 kB | 36.9 kB | -28 B (-0.1%) |
size_with_ext_deps | 47.5 kB | 47.4 kB | -28 B (-0.1%) |
No description provided.