All checks were successful
Build Docker Image / Build Docker Image (push) Successful in 6m5s
-jwt services/jwt.service.ts -เพิ่ม เวลา expire jwt token
21 lines
574 B
TypeScript
21 lines
574 B
TypeScript
import { Component, OnInit } from '@angular/core';
|
|
import { Observable } from 'rxjs';
|
|
import { JwtService } from '../../services/jwt.service';
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
@Component({
|
|
selector: 'app-token-timer',
|
|
standalone: false,
|
|
templateUrl: './token-timer.component.html',
|
|
styleUrls: ['./token-timer.component.css']
|
|
})
|
|
export class TokenTimerComponent implements OnInit {
|
|
countdown$: Observable<string | null>;
|
|
|
|
constructor(private jwtService: JwtService) {
|
|
this.countdown$ = this.jwtService.countdown$;
|
|
}
|
|
|
|
ngOnInit(): void {}
|
|
}
|