     getIdToken: () -> id_token
     getAccessHash: () -> access_hash
     getDiscovery: () -> discovery_obj
+    getCode: () -> code
 
     auth_endpoint: () ->
         return discovery_obj.authorization_endpoint if discovery_obj

        access_hash = access_hash_clt
        access_token = access_hash.access_token
        id_token = access_hash.id_token

    checkTokens = (nonce, hash) ->
        if hash.access_token

        scope: 'openid+profile'
        response_type: 'id_token token'

    access_token = id_token = access_hash = identity_obj = discovery_obj = jwks = code = null

    disconnect = (callback) ->
        callback ?= false
        window.localStorage.clear()
        access_token = id_token = access_hash = identity_obj = code = null
        if callback
            callback()
        else
