We created Sign Up and Sign In userflow for our B2C application to authenticate users.
To identify the user selected option i.e, sign up or sign in, we added "User is new" application claim to our user flow:
But when we generate the token, we cannot see "newUser" flag in it's claims.
"iss": "https://ourb2ctenant.b2clogin.com/0006565e-bfe8-45ee-a405-cede36487a6d/v2.0/",
"exp": 1666757889,
"nbf": 1666754289,
"aud": "3df6735e-2c7c-436d-a9f2-058d213d125a",
"tfp": "B2C_1_SUSI",
"azpacr": "1",
"sub": "92769eb0-14f3-40f8-bef8-75fef429214c".
"oid": "92769eb0-14f3-40f8-bef8-75fef429214c",
"tid": "0006565e-bfe8-45ee-a405-cede36487a6d",
"ver": "2.0",
"azp": "3df6735e-2c7c-436d-a9f2-058d213d125a".
"iat": 1666754289
Are we missing something?


You need to use interactive method like authorization code flow and include openid scope to get
new usertoken claim.I tried to reproduce the same in my environment and got the below results:
I have one Azure AD B2C application that has supported account type as below:
Now I created one
Sign up and sign inuser flow with same parameters as you and ran the user flow like below:When I ran the user flow, I got the login screen like below:
Now I selected
Sign up nowto sign in as a new user and got below screen where I filled details like this:When I selected Create, it took me to the redirect URI with
codein address bar like below:To generate access token, I used authorization code flow with parameters like below:
Response:
When I decoded the above token, I got
newUserclaim as true as below: