Extend sessionresponse for /imx/login in Composition API

Is it possible to extend the session response with various custom properties for the /imx/login method in the Composition API? Something like this:

{
	"Status": {
		"PrimaryAuth": {
			...
		},
		"SecondaryAuth": {
			...
		},
		"AuthValidUntil": "2023-01-24T11:09:44.9990858Z",
		"Culture": "en-US",
		"CustomProperty": "Value",
		"AnotherCustomProperty": "Value"
	},
	"Config": [
		{
			...