How to bypass organization page conditionally

hi, I am trying to bypass organization prompt while logging in, in few cases. I found that we can create custom /authorize url passing the organization id but I am not able to create proper url. Can someone help me that?