Hi @Lewis Ollerenshaw ,
Thanks for reaching out.
Yes, it is possible to create a custom policy in Azure AD B2C that can check if the user is logged in or not. You can use the "IsAuthenticated" claim type to check if the user has an active session or not.
<TechnicalProfile Id="CheckIsAuthenticated">
<DisplayName>Check if user is authenticated</DisplayName>
<Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.ClaimsTransformationProtocolProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="isAuthenticated" DefaultValue="false" />
</OutputClaims>
<OutputClaimsTransformations>
<OutputClaimsTransformation ReferenceId="CheckIsAuthenticated" />
</OutputClaimsTransformations>
</TechnicalProfile>
You can use this technical profile to add in your user journey to call the flow accordingly.
Alternatively, you can call the REST API to check the user's session and based on scenario call in your user journey to redirect to site A or site B.
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.