diff --git a/login/app.py b/login/app.py
index 90e60a4a5803cbaafe498dd7edc102c27cc30e65..546963e923229de5a4de7decfe40144d6736c04d 100644
--- a/login/app.py
+++ b/login/app.py
@@ -551,7 +551,7 @@ def consent():
             role = role_obj.role
 
     # Get claims for this user, provided the current app
-    claims = user.get_claims(app_name, None, role)
+    claims = user.get_claims(app_name, role)
 
     # pylint: disable=fixme
     # TODO: Need to implement checking claims here, once the backend for that is
diff --git a/login/kratos.py b/login/kratos.py
index 5636841fcc014dc65404a5cb3d353ddb90f510e6..0f473aded3f5851c7d8525097e19c87c7075b648 100644
--- a/login/kratos.py
+++ b/login/kratos.py
@@ -325,7 +325,7 @@ class KratosUser():
     # Pylint complains about app not used. That is correct, but we will use that
     # in the future. Ignore this error
     # pylint: disable=unused-argument
-    def get_claims(self, app, mapping = None, role) -> Dict[str, Dict[str, str]]:
+    def get_claims(self, app, role, mapping = None) -> Dict[str, Dict[str, str]]:
         """Create openID Connect token
         Use the userdata stored in the user object to create an OpenID Connect token.
         The token returned by this function can be passed to Hydra,