         log.error(e)
         log.error('keypair generation failed!', e)
 
-    deriveKeypair : ({ password }, authCallback) ->
+    deriveKeypair : ({ password }, authCallback = -> ) ->
       Promise.resolve()
       .then =>
         authCallback(AuthenticationStage.DERIVE_KEYPAIR)

        hexDerived     = Forge.util.bytesToHex(derived)
        return hexDerived

    initializeKeypair : ({ password }, authCallback) ->
      { publicKey, privateKey, keypair } = {}

      Promise.resolve()

      @directoryApi    = new DirectoryApi()
      @rsaKeyGenerator = new RsaKeyGenerator()

    deriveCredential : ({ username, password, realm }, authCallback = -> ) ->
      { iterations, keySize, passwordCrypto } = {}

      Promise.resolve()
