fix: layout token redirect

This commit is contained in:
Piyush Gupta
2025-11-24 20:12:34 +05:30
parent 219983d8ed
commit ad08ed8471
4 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -81,7 +81,8 @@ export const registerAuthRoutes = async (server: FastifyZodProvider) => {
response: {
200: z.object({
token: z.string(),
organizationId: z.string().optional()
organizationId: z.string().optional(),
subOrganizationId: z.string().optional()
})
}
},
@@ -131,7 +132,6 @@ export const registerAuthRoutes = async (server: FastifyZodProvider) => {
appCfg.AUTH_SECRET,
{ expiresIn }
);
return { token, organizationId: decodedToken.organizationId, subOrganizationId: decodedToken.subOrganizationId };
}
});