import { isNewType, NewType } from '@typed/new-type' const regex = /^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/ export type Jwt = NewType export const isJwt = isNewType((s: string): s is Jwt => regex.test(s))