UNPKG

@thisisagile/easy-service

Version:

Straightforward library for building domain-driven microservice architectures

14 lines (13 loc) 419 B
import { Json, OneOrMore, Optional, Validatable, Jwt as JwtBase } from '@thisisagile/easy'; interface SignOptions { audience?: Optional<OneOrMore<string>>; issuer?: Optional<string>; } export declare class Jwt extends JwtBase implements Validatable { static of: (a: { jwt: string; }) => Jwt; get isValid(): boolean; static sign: (token: Json, options?: SignOptions) => Jwt; } export {};