import { Either } from '@/shared' ; export type Payload = { id : string ; } ; export interface TokenManager { sign ( info , expiresIn ? ) : Promise < string > ; verify ( token ) : Promise < Either < Error , Payload > > ; }