File

src/common/auth/services/auth.service.ts

Index

Methods

Constructor

constructor()

Methods

getAuthenticatedUser
getAuthenticatedUser(context)
Parameters :
Name Optional
context No
Returns : any
import { Injectable } from "@nestjs/common";

@Injectable()
export class AuthService {
  constructor() {}

  getAuthenticatedUser(context) {
    const { user } = context.switchToHttp().getRequest();
    return user;
  }
}

results matching ""

    No results matching ""