diff --git a/flask_assistant/core.py b/flask_assistant/core.py
index <HASH>..<HASH> 100644
--- a/flask_assistant/core.py
+++ b/flask_assistant/core.py
@@ -102,9 +102,13 @@ class Assistant(object):
 
         if app is not None:
             self.init_app(app)
+
         elif blueprint is not None:
             self.init_blueprint(blueprint)
 
+        if self.client_id is None and self.app is not None:
+            self.client_id = self.app.config.get("AOG_CLIENT_ID")
+
         if project_id is None:
             import warnings
 
@@ -393,18 +397,15 @@ class Assistant(object):
 
             token = self.user["idToken"]
             decode_resp = decode_token(token, self.client_id)
-            if decode_resp["status"]=="BAD":
+            if decode_resp["status"] == "BAD":
                 return
-            else: #decode_resp["status"]=="OK"
+            else:  # decode_resp["status"]=="OK"
                 profile_payload = decode_resp["output"]
             for k in ["sub", "iss", "aud", "iat", "exp"]:
                 profile_payload.pop(k)
 
             self.profile = profile_payload
 
-
-
-    
     def _flask_assitant_view_func(self, nlp_result=None, *args, **kwargs):
         if nlp_result:  # pass API query result directly
             self.request = nlp_result
only get aog client id from app config if app is set