import { JsonObject } from '@typed/common' ; export function createClaims < A extends JsonObject > ( claims , expirationMs ) { const now = Date . now ( ) ; const nbf = now / 1000 ; const exp = ( now + expirationMs ) / 1000 ; return { nbf , exp , ... claims , } ; }