2021-11-26 20:32:25 +00:00
|
|
|
import {SecurityContext} from '../context/SecurityContext'
|
|
|
|
import {Authenticatable} from '../types'
|
2022-01-27 01:37:54 +00:00
|
|
|
import {BaseEvent} from '../../support/bus'
|
2021-11-26 20:32:25 +00:00
|
|
|
|
2022-01-27 01:37:54 +00:00
|
|
|
export abstract class AuthenticationEvent extends BaseEvent {
|
2021-11-26 20:32:25 +00:00
|
|
|
constructor(
|
|
|
|
public readonly user: Authenticatable,
|
|
|
|
public readonly context: SecurityContext,
|
|
|
|
) {
|
|
|
|
super()
|
|
|
|
}
|
|
|
|
}
|