Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RenewSessionHooks

Hooks called when session is renewed.
Mainly can be used for logging purposes.

Hierarchy

  • RenewSessionHooks

Methods

onOldSessionDeleteFailure

  • onOldSessionDeleteFailure(sessionId: string, e: Error): void
  • After successful renew operation, the deletion of old session will be scheduled to occur after UserSessionTimeouts.oldSessionAvailabilityAfterRenewal seconds.
    In case the deletion of the old session will fail, this hook will be called with that error.

    Parameters

    • sessionId: string

      Id of the session.

    • e: Error

      Error that caused failure of the old session deletion.

    Returns void

onRenewMadeAlreadyFromAnotherProcess

  • onRenewMadeAlreadyFromAnotherProcess(sessionId: string): void
  • Hook called when making an attempt to renew user session, but it was renewed already from another NodeJs process.

    Parameters

    • sessionId: string

      Id of the session that was tried to be renewed.

    Returns void

onRenewMadeAlreadyFromCurrentProcess

  • onRenewMadeAlreadyFromCurrentProcess(sessionId: string): void
  • Hook called when making an attempt to renew user session, but it was renewed already from current NodeJs process.

    Parameters

    • sessionId: string

      Id of the session that was tried to be renewed.

    Returns void