diff --git a/consent_provider/db.py b/consent_provider/db.py
index 1705f33d2ed1ce69e44c2b5464a1e2c078c014a8..148f6e88952e09bc0e4bc4c72541a0f22cb182ec 100644
--- a/consent_provider/db.py
+++ b/consent_provider/db.py
@@ -35,6 +35,17 @@ class User():
         return appname in self.applications
 
     def get_oauth_session(self):
+        """Create openID Connect token
+
+        Use the userdata stored in the user object to create an OpenID Connect token.
+        The will be passed to Hydra, which will store it and server it to all OpenID Connect
+        Clients, that successfuly query the /userinfo endpoint. Every field in the "id_token"
+        dictionary can be accessed through standard scopes and claims.
+        See https://openid.net/specs/openid-connect-core-1_0.html#Claims
+
+        Returns:
+            OpenID Connect token of type dict
+        """
         return {
             "access_token": {},
             "id_token": {