Skip to content

Conversation

@kenany
Copy link
Member

@kenany kenany commented May 29, 2024

No description provided.

@kenany kenany self-assigned this May 29, 2024
@kenany kenany marked this pull request as ready for review June 3, 2024 15:45
@kenany kenany requested a review from a team as a code owner June 3, 2024 15:45
@kenany kenany force-pushed the kenany/GEA-14495/authn-usernames branch from f8bf177 to 07f08c0 Compare June 3, 2024 16:43
pangea-andrest
pangea-andrest previously approved these changes Jun 4, 2024
Copy link
Contributor

@pangea-andrest pangea-andrest left a comment

Choose a reason for hiding this comment

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

Some comments to discuss. If they are okey, feel free to merge

request:
| AuthN.User.Authenticators.Delete.EmailRequest
| AuthN.User.Authenticators.Delete.IDRequest
request: AuthN.User.Authenticators.Delete.Request
Copy link
Contributor

Choose a reason for hiding this comment

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

Ins't this a breaking change? Does AuthN.User.Authenticators.Delete.Request include the older classes?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's equivalent as far as this parameter is concerned, I've just consolidated what would have been 3 interfaces into 1 interface + 1 type.

Copy link
Contributor

@pangea-andrest pangea-andrest Jun 5, 2024

Choose a reason for hiding this comment

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

Got it, but my question is... if someone has something like

request: AuthN.User.Authenticators.Delete.EmailRequest = {
   email: "foo@bar",
}

Will this still work or it will complain because it now takes a
request: AuthN.User.Authenticators.Delete.Request

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think we document directly referencing the interfaces like that but since they are indeed public, sure, I have restored them all.

login_count: number;
last_login_ip?: string;
last_login_city?: string;
last_login_country?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

Aren't these documented?

Copy link
Member Author

Choose a reason for hiding this comment

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

They're not.

@kenany kenany merged commit 921c75b into main Jun 6, 2024
@kenany kenany deleted the kenany/GEA-14495/authn-usernames branch June 6, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants