AuthGuard constructor

AuthGuard({
  1. String? redirectTo,
})

Guard that checks if the user is authenticated.

You must import AuthModule in the module using this guard.

Implementation

AuthGuard({super.redirectTo});