Return the payload of the session in oidc and not the session object
This commit is contained in:
+1
-1
@@ -371,7 +371,7 @@ class CloudronAdapter {
|
||||
if (!user || !user.active) return null;
|
||||
}
|
||||
|
||||
return session;
|
||||
return session.payload;
|
||||
} else {
|
||||
if (!DATA_STORE[this.name][id]) return null;
|
||||
return DATA_STORE[this.name][id].payload;
|
||||
|
||||
Reference in New Issue
Block a user