Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
intrn(server): add client IP
Browse files Browse the repository at this point in the history
Co-authored-by: Kenneth Trecy Tobias <19201.tobias.kennethtrecy.c@gmail.com>
  • Loading branch information
Argsfried and KennethTrecy committed Nov 23, 2022
1 parent cbed6f9 commit ad7448b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/types/dependent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ export interface Request extends BaseRequest, SharedManagerState<TransactionMana
isAuthenticated: () => boolean
logout: () => void,

// Added due to `request-ip` package
clientIp: string,

asynchronousOperation: AsynchronousOperationManager|undefined
}


export interface AuthenticatedRequest extends Request {
session: Session & {
token: string
Expand Down

0 comments on commit ad7448b

Please sign in to comment.