mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 11:29:42 +00:00
Chore: Move SAML org check to permission service
This commit is contained in:
@@ -65,9 +65,9 @@ export const registerLoginRouter = async (server: FastifyZodProvider) => {
|
||||
// The decoded JWT token, which contains the auth method.
|
||||
const decodedToken = jwt.verify(authToken, cfg.AUTH_SECRET) as AuthModeJwtTokenPayload;
|
||||
|
||||
if (decodedToken.organizationId) {
|
||||
throw new UnauthorizedError({ message: "You have already selected an organization" });
|
||||
}
|
||||
// if (decodedToken.organizationId) {
|
||||
// throw new UnauthorizedError({ message: "You have already selected an organization" });
|
||||
// }
|
||||
|
||||
const user = await server.services.user.getMe(decodedToken.userId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user