-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add authentication events #998
base: main
Are you sure you want to change the base?
Conversation
59676c0
to
5f34b3e
Compare
src/user-management/interfaces/authentication-events.interface.ts
Outdated
Show resolved
Hide resolved
src/user-management/interfaces/authentication-events.interface.ts
Outdated
Show resolved
Hide resolved
EmailVerification
entity
src/user-management/interfaces/authentication-events.interface.ts
Outdated
Show resolved
Hide resolved
src/user-management/interfaces/authentication-event.interface.ts
Outdated
Show resolved
Hide resolved
a04be2d
to
39fdd37
Compare
@amygdalama Types updated! I'll proceed with testing locally. |
src/user-management/interfaces/authentication-event.interface.ts
Outdated
Show resolved
Hide resolved
|
||
export type AuthenticationEvent = { | ||
type: AuthenticationEventType; | ||
email?: string | null; |
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.
email?: string | null; | |
email: string | null; |
|
||
export interface AuthenticationEventResponse { | ||
type: AuthenticationEventType; | ||
email?: string | null; |
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.
email?: string | null; | |
email: string | null; |
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.
Seems like we're not that consistent with nullable properties, there are a couple of other places that use undefined | null
.
I've updated error
to | null
as well: b972c1d
20a8dab
to
ef843cd
Compare
We'll hold on merging this since not all events are being emitted internally yet. |
Description
Adding types/parsing for authentication events.
Documentation
Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.
If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.