import { ForbiddenProblem } from "../../domain/entities/Problem" ; export interface TokenPayload { id : string ; username ? : string ; roles ? : object ; } export interface IJwtProvider { param payload generateToken ( payload ) : string ; param token parse ( token ) : TokenPayload | ForbiddenProblem ; }