v1.3.0 Organization - Session inference not working

When using the organization plugin and trying to infer the session:
typeof auth.$Infer.Session.session
typeof auth.$Infer.Session.session
On v1.3.0 there is no longer an activeOrganizationId property passed on the session. tsconfig.json:
{
"compilerOptions": {
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"verbatimModuleSyntax": true,
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
/* Strictness */
"strict": true,
"noUncheckedIndexedAccess": false,
/* If NOT transpiling with TypeScript: */
"moduleResolution": "Bundler",
"module": "ESNext",
"noEmit": true,
/* If your code doesn't run in the DOM: */
"lib": ["es2022"],

/* Specify the base directory to resolve non-relative module names. */
"baseUrl": "./",
"paths": {
"~/*": ["src/*"]
},
"types": ["node"]
},
"exclude": ["node_modules"]
}
{
"compilerOptions": {
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"verbatimModuleSyntax": true,
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
/* Strictness */
"strict": true,
"noUncheckedIndexedAccess": false,
/* If NOT transpiling with TypeScript: */
"moduleResolution": "Bundler",
"module": "ESNext",
"noEmit": true,
/* If your code doesn't run in the DOM: */
"lib": ["es2022"],

/* Specify the base directory to resolve non-relative module names. */
"baseUrl": "./",
"paths": {
"~/*": ["src/*"]
},
"types": ["node"]
},
"exclude": ["node_modules"]
}
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?