mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
25 lines
536 B
TypeScript
25 lines
536 B
TypeScript
import { Injectable } from '@nestjs/common';
|
|
import { ConfigService } from '@nestjs/config';
|
|
import { JwtService } from '@nestjs/jwt';
|
|
|
|
@Injectable()
|
|
export class AppService {
|
|
// configService: ConfigService;
|
|
|
|
constructor(
|
|
private configService: ConfigService,
|
|
private jwtService: JwtService,
|
|
) {}
|
|
|
|
getHello(): string {
|
|
console.log(this.configService.get('DATABASE_PORT'));
|
|
const payload = {};
|
|
|
|
const accessToken = this.jwtService.sign(payload);
|
|
|
|
console.log(accessToken);
|
|
|
|
return accessToken;
|
|
}
|
|
}
|