Authenticator type

type Authenticator = (challenge: object) => Promise<string>