• Tests whether the target string is a valid JWT

    Example

    expect(isJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dnZWRJbkFzIjoiYWRtaW4iLCJpYXQiOjE0MjI3Nzk2Mzh9.gzSraSYS8EXBxLN_oWnFSRgCzcmJmMjLiuyu5CSpyHI').value).toBeTruthy()
    

    Parameters

    • target: string

      The target string

    Returns Result<boolean | undefined>

Generated using TypeDoc